6e32d99174a9010153485d8b18f96bb2b70cdef3,homeassistant/components/notify/message_bird.py,,get_service,#Any#Any#,31

Before Change


    Get the MessageBird notification service.
    from messagebird import Client

    if CONF_API_KEY not in config:
        _LOGGER.error("Unable to find config key "%s"", CONF_API_KEY)
        return None

    sender = config.get(CONF_SENDER, "HA")
    if not is_valid_sender(sender):
        _LOGGER.error("Sender is invalid: It must be a phone number or " +
                      "a string not longer than 11 characters.")

After Change


    Get the MessageBird notification service.
    import messagebird

    if not validate_config({DOMAIN: config},
                           {DOMAIN: [CONF_API_KEY]},
                           _LOGGER):
        return None

    sender = config.get(CONF_SENDER, "HA")
    if not is_valid_sender(sender):
        _LOGGER.error("Sender is invalid: It must be a phone number or "
                      "a string not longer than 11 characters.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: 6e32d99174a9010153485d8b18f96bb2b70cdef3
Time: 2016-03-16
Author: florian.holzapfel@glueckkanja.com
File Name: homeassistant/components/notify/message_bird.py
Class Name:
Method Name: get_service


Project Name: home-assistant/home-assistant
Commit Name: 6e32d99174a9010153485d8b18f96bb2b70cdef3
Time: 2016-03-16
Author: florian.holzapfel@glueckkanja.com
File Name: homeassistant/components/notify/message_bird.py
Class Name:
Method Name: get_service


Project Name: home-assistant/home-assistant
Commit Name: 1c10f218debe64f7ece4dbf855c66e0829c76174
Time: 2016-01-31
Author: stefan.jonasson@sitedirect.se
File Name: homeassistant/components/media_player/samsungtv.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 6a239bf18a7e010b09e7606fd09afc03a06f1691
Time: 2015-07-30
Author: rkabadi06@gmail.com
File Name: homeassistant/components/switch/edimax.py
Class Name:
Method Name: setup_platform