734bd75fd33e48464c01f738b8072406dc0e84d8,homeassistant/components/climate/mysensors.py,,setup_platform,#Any#Any#Any#Any#,23

Before Change


    Setup the mysensors climate.
    if discovery_info is None:
        return
    for gateway in mysensors.GATEWAYS.values():
        if float(gateway.protocol_version) < 1.5:
            continue
        pres = gateway.const.Presentation

After Change


    if discovery_info is None:
        return

    gateways = hass.data.get(mysensors.MYSENSORS_GATEWAYS)
    if not gateways:
        return

    for gateway in gateways:
        if float(gateway.protocol_version) < 1.5:
            continue
        pres = gateway.const.Presentation
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 10

Instances


Project Name: home-assistant/home-assistant
Commit Name: 734bd75fd33e48464c01f738b8072406dc0e84d8
Time: 2016-11-06
Author: marhje52@kth.se
File Name: homeassistant/components/climate/mysensors.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 734bd75fd33e48464c01f738b8072406dc0e84d8
Time: 2016-11-06
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 734bd75fd33e48464c01f738b8072406dc0e84d8
Time: 2016-11-06
Author: marhje52@kth.se
File Name: homeassistant/components/sensor/mysensors.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 734bd75fd33e48464c01f738b8072406dc0e84d8
Time: 2016-11-06
Author: marhje52@kth.se
File Name: homeassistant/components/cover/mysensors.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 734bd75fd33e48464c01f738b8072406dc0e84d8
Time: 2016-11-06
Author: marhje52@kth.se
File Name: homeassistant/components/binary_sensor/mysensors.py
Class Name:
Method Name: setup_platform