80a794e587f9f63f28afea741f97e36a7ca8e427,homeassistant/components/cover/wink.py,,setup_platform,#Any#Any#Any#Any#,14
Before Change
Setup the Wink cover platform.
import pywink
add_devices(WinkCoverDevice(shade, hass) for shade in
pywink.get_shades())
add_devices(WinkCoverDevice(door, hass) for door in
pywink.get_garage_doors())
After Change
_id = shade.object_id() + shade.name()
if _id not in hass.data[DOMAIN]["unique_ids"]:
add_devices([WinkCoverDevice(shade, hass)])
for door in pywink.get_garage_doors():
_id = door.object_id() + door.name()
if _id not in hass.data[DOMAIN]["unique_ids"]:
add_devices([WinkCoverDevice(door, hass)])
class WinkCoverDevice(WinkDevice, CoverDevice):
Representation of a Wink cover device.
def __init__(self, wink, hass):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances 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
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/lock/wink.py
Class Name:
Method Name: setup_platform