3b3f5fe6fe2092a5071491fafce11b3851d07ce8,homeassistant/components/notify/xmpp.py,,get_service,#Any#Any#,28

Before Change


                           _LOGGER):
        return None

    try:
        SendNotificationBot(config[DOMAIN]["sender"] + "/home-assistant",
                            config[DOMAIN]["password"],
                            config[DOMAIN]["recipient"],
                            "")
    except ImportError:
        _LOGGER.exception(
            "Unable to contact jabber server."
            "Please check your credentials.")

        return None

    return XmppNotificationService(config[DOMAIN]["sender"],
                                   config[DOMAIN]["password"],
                                   config[DOMAIN]["recipient"])

After Change


def get_service(hass, config):
     Get the Jabber (XMPP) notification service. 

    if not validate_config({DOMAIN: config},
                           {DOMAIN: ["sender", "password", "recipient"]},
                           _LOGGER):
        return None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: 3b3f5fe6fe2092a5071491fafce11b3851d07ce8
Time: 2015-11-08
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/notify/xmpp.py
Class Name:
Method Name: get_service


Project Name: home-assistant/home-assistant
Commit Name: 9f54bcc21b1744f2850a35e54903f3581d14badb
Time: 2015-12-23
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup


Project Name: home-assistant/home-assistant
Commit Name: 3b3f5fe6fe2092a5071491fafce11b3851d07ce8
Time: 2015-11-08
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/notify/slack.py
Class Name:
Method Name: get_service