350b8e09e6b1dabbba2bd5fb5db996dacfa782d0,homeassistant/components/upnp.py,,setup,#Any#Any#,49

Before Change


        hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, deregister_port)

    except Exception as ex:
        _LOGGER.error("UPnP failed to configure port mapping: %s", str(ex))
        hass.components.persistent_notification.create(
            "<b>ERROR: tcp port {} is already mapped in your router."
            "</b><br />Please disable port_mapping in the <i>upnp</i> "

After Change


                external, "TCP", host, internal, "Home Assistant", "")
            registered.append(external)
        except Exception:
            _LOGGER.exception("UPnP failed to configure port mapping for %s",
                              external)
            hass.components.persistent_notification.create(
                "<b>ERROR: tcp port {} is already mapped in your router."
                "</b><br />Please disable port_mapping in the <i>upnp</i> "
                "configuration section.<br />"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 350b8e09e6b1dabbba2bd5fb5db996dacfa782d0
Time: 2017-09-24
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/upnp.py
Class Name:
Method Name: setup


Project Name: thenetcircle/dino
Commit Name: e4fa41214d03d5c0163fe3cc4d3479d3b5007ccb
Time: 2016-12-27
Author: oscar.eriks@gmail.com
File Name: dino/hooks/disconnect.py
Class Name: OnDisconnectHooks
Method Name: leave_private_room


Project Name: streamlit/streamlit
Commit Name: e760a335265089d58705f6986b19708c52dcdb19
Time: 2018-04-07
Author: adrien.g.treuille@gmail.com
File Name: local/server/streamlit/local/io.py
Class Name:
Method Name: write