80a794e587f9f63f28afea741f97e36a7ca8e427,homeassistant/components/lock/wink.py,,setup_platform,#Any#Any#Any#Any#,14

Before Change


    Setup the Wink platform.
    import pywink

    add_devices(WinkLockDevice(lock, hass) for lock in pywink.get_locks())


class WinkLockDevice(WinkDevice, LockDevice):
    Representation of a Wink lock.

After Change


    Setup the Wink platform.
    import pywink

    for lock in pywink.get_locks():
        _id = lock.object_id + lock.name()
        if _id not in hass.data[DOMAIN]["unique_ids"]:
            add_devices([WinkLockDevice(lock, hass)])


class WinkLockDevice(WinkDevice, LockDevice):
    Representation of a Wink lock.

    def __init__(self, wink, hass):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 17

Instances


Project Name: home-assistant/home-assistant
Commit Name: 80a794e587f9f63f28afea741f97e36a7ca8e427
Time: 2017-02-01
Author: wjs.scanlon@gmail.com
File Name: homeassistant/components/lock/wink.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 80a794e587f9f63f28afea741f97e36a7ca8e427
Time: 2017-02-01
Author: wjs.scanlon@gmail.com
File Name: homeassistant/components/light/wink.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 80a794e587f9f63f28afea741f97e36a7ca8e427
Time: 2017-02-01
Author: wjs.scanlon@gmail.com
File Name: homeassistant/components/cover/wink.py
Class Name:
Method Name: setup_platform