3e3f710b1269c4045095c899665f6002f3710695,homeassistant/components/light/qwikswitch.py,,setup_platform,#Any#Any#Any#Any#,17

Before Change


def setup_platform(hass, config, add_devices, discovery_info=None):
    Set up the lights from the main Qwikswitch component.
    if discovery_info is None:
        _LOGGER.error("Configure Qwikswitch component failed")
        return False

    add_devices(qwikswitch.QSUSB["light"])
    return True

After Change


def setup_platform(hass, config, add_devices, discovery_info=None):
    Add lights from the main Qwikswitch component.
    if discovery_info is None:
        logging.getLogger(__name__).error(
            "Configure Qwikswitch Light component failed")
        return False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: home-assistant/home-assistant
Commit Name: 3e3f710b1269c4045095c899665f6002f3710695
Time: 2018-03-25
Author: kellerza@gmail.com
File Name: homeassistant/components/light/qwikswitch.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 3e3f710b1269c4045095c899665f6002f3710695
Time: 2018-03-25
Author: kellerza@gmail.com
File Name: homeassistant/components/switch/qwikswitch.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 8c728d1b4eaf5f66570d7a9d139cd8e1940c551f
Time: 2016-07-26
Author: kellerza@gmail.com
File Name: homeassistant/components/device_tracker/icloud.py
Class Name:
Method Name: setup_scanner