903cda08b153400849409c253cbc8051af53a503,homeassistant/components/light/insteon_local.py,,setup_platform,#Any#Any#Any#Any#,30

Before Change


    Set up the Insteon local light platform.
    insteonhub = hass.data["insteon_local"]

    conf_lights = load_json(hass.config.path(INSTEON_LOCAL_LIGHTS_CONF))
    if conf_lights:
        for device_id in conf_lights:
            setup_light(device_id, conf_lights[device_id], insteonhub, hass,
                        add_devices)

After Change



    linked = discovery_info["linked"]
    device_list = []
    for device_id in linked:
        if linked[device_id]["cat_type"] == "dimmer":
            device = insteonhub.dimmer(device_id)
            device_list.append(
                InsteonLocalDimmerDevice(device)
            )

    add_devices(device_list)


class InsteonLocalDimmerDevice(Light):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 903cda08b153400849409c253cbc8051af53a503
Time: 2018-01-08
Author: cameron.b.llewellyn@gmail.com
File Name: homeassistant/components/light/insteon_local.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 903cda08b153400849409c253cbc8051af53a503
Time: 2018-01-08
Author: cameron.b.llewellyn@gmail.com
File Name: homeassistant/components/switch/insteon_local.py
Class Name:
Method Name: setup_platform


Project Name: automl/SMAC3
Commit Name: 862a86162d9e5956bbfb9035bcbb5be67cc69db9
Time: 2016-11-16
Author: marius.rks@googlemail.com
File Name: smac/utils/merge_foreign_data.py
Class Name:
Method Name: merge_foreign_data


Project Name: automl/SMAC3
Commit Name: 52ea69d3b97716996346006ce3793d290baa96ec
Time: 2016-11-15
Author: marius.rks@googlemail.com
File Name: smac/smac_cli.py
Class Name: SMACCLI
Method Name: main_cli