1ca09ea36f80458cd9819d85b9aae29c1ed343a4,homeassistant/components/sensor/zoneminder.py,,setup_platform,#Any#Any#Any#Any#,42

Before Change



        for sensor in config[CONF_MONITORED_CONDITIONS]:
            sensors.append(
                ZMSensorEvents(int(i["Monitor"]["Id"]),
                               i["Monitor"]["Name"],
                               include_archived, sensor)
            )

After Change



    zm_client = hass.data[ZONEMINDER_DOMAIN]
    monitors = zm_client.get_monitors()
    if not monitors:
        _LOGGER.warning("Could not fetch any monitors from ZoneMinder")

    sensors = []
    for monitor in monitors:
        sensors.append(ZMSensorMonitors(monitor))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 1ca09ea36f80458cd9819d85b9aae29c1ed343a4
Time: 2018-09-14
Author: rohan@rohankapoor.com
File Name: homeassistant/components/sensor/zoneminder.py
Class Name:
Method Name: setup_platform


Project Name: RaRe-Technologies/gensim
Commit Name: 44d547feb7737696e2ab9d39f98380b8ed23b369
Time: 2014-05-18
Author: radimrehurek@seznam.cz
File Name: gensim/models/word2vec.py
Class Name: Word2Vec
Method Name: make_table


Project Name: home-assistant/home-assistant
Commit Name: 1ca09ea36f80458cd9819d85b9aae29c1ed343a4
Time: 2018-09-14
Author: rohan@rohankapoor.com
File Name: homeassistant/components/switch/zoneminder.py
Class Name:
Method Name: setup_platform