9d848731d903a8ee2296bbfc6746f4eb5143a446,homeassistant/components/binary_sensor/nest.py,,setup_platform,#Any#Any#Any#Any#,27

Before Change



def setup_platform(hass, config, add_devices, discovery_info=None):
    Setup Nest binary sensors.
    logger = logging.getLogger(__name__)
    try:
        for structure in nest.NEST.structures:
            for device in structure.devices:
                for variable in config["monitored_conditions"]:

After Change


def setup_platform(hass, config, add_devices, discovery_info=None):
    Setup Nest binary sensors.
    for structure, device in nest.devices():
        add_devices([NestBinarySensor(structure, device, variable)
                     for variable in config[CONF_MONITORED_CONDITIONS]])


class NestBinarySensor(NestSensor, BinarySensorDevice):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: 9d848731d903a8ee2296bbfc6746f4eb5143a446
Time: 2016-04-11
Author: jaharkes@cs.cmu.edu
File Name: homeassistant/components/binary_sensor/nest.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 9d848731d903a8ee2296bbfc6746f4eb5143a446
Time: 2016-04-11
Author: jaharkes@cs.cmu.edu
File Name: homeassistant/components/sensor/nest.py
Class Name:
Method Name: setup_platform


Project Name: gooofy/zamia-speech
Commit Name: 79aebeb14bf19333e61ee305b99f91dd191942d7
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name: