9d848731d903a8ee2296bbfc6746f4eb5143a446,homeassistant/components/sensor/nest.py,,setup_platform,#Any#Any#Any#Any#,38

Before Change



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

After Change


                    if variable in SENSOR_TEMP_TYPES]
        sensors += [NestWeatherSensor(structure, device,
                                      WEATHER_VARS[variable])
                    for variable in config[CONF_MONITORED_CONDITIONS]
                    if variable in WEATHER_VARS]
        add_devices(sensors)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: deepchem/deepchem
Commit Name: fde6f3c658ccaadede04e07cb493f56744ae3511
Time: 2020-11-02
Author: peastman@stanford.edu
File Name: deepchem/molnet/load_function/cell_counting_datasets.py
Class Name:
Method Name:


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