903cda08b153400849409c253cbc8051af53a503,homeassistant/components/switch/insteon_local.py,,setup_platform,#Any#Any#Any#Any#,26

Before Change


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

    conf_switches = load_json(hass.config.path(INSTEON_LOCAL_SWITCH_CONF))
    if conf_switches:
        for device_id in conf_switches:
            setup_switch(
                device_id, conf_switches[device_id], insteonhub, hass,

After Change


    if discovery_info is None:
        return

    linked = discovery_info["linked"]
    device_list = []
    for device_id in linked:
        if linked[device_id]["cat_type"] == "switch":
            device = insteonhub.switch(device_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: 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: uber/ludwig
Commit Name: fbe9c6d0f43e46674315af432780a0e3961af05d
Time: 2019-12-29
Author: jimthompson5802@aol.com
File Name: ludwig/train.py
Class Name:
Method Name: kfold_cross_validate