e00f9339d188deae2d2ce84eae49eb952f3dcc89,homeassistant/components/alarm_control_panel/alarmdotcom.py,,setup_platform,#Any#Any#Any#Any#,23

Before Change


    username = config.get(CONF_USERNAME)
    password = config.get(CONF_PASSWORD)

    if username is None or password is None:
        _LOGGER.error("Must specify username and password!")
        return False

    add_devices([AlarmDotCom(hass,
                             config.get("name", DEFAULT_NAME),
                             config.get("code"),
                             username,
                             password)])

After Change



def setup_platform(hass, config, add_devices, discovery_info=None):
    Setup an Alarm.com control panel.
    name = config.get(CONF_NAME)
    code = config.get(CONF_CODE)
    username = config.get(CONF_USERNAME)
    password = config.get(CONF_PASSWORD)

    add_devices([AlarmDotCom(hass, name, code, username, password)])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: home-assistant/home-assistant
Commit Name: e00f9339d188deae2d2ce84eae49eb952f3dcc89
Time: 2016-09-06
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/alarm_control_panel/alarmdotcom.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 40c71b5d963d752402ccdc3de12faa58c974743e
Time: 2016-09-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/binary_sensor/command_line.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 9d4ccb1f49e63e6baa1c9c1f91e02c0fd136530e
Time: 2016-09-06
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/alarm_control_panel/simplisafe.py
Class Name:
Method Name: setup_platform