80a794e587f9f63f28afea741f97e36a7ca8e427,homeassistant/components/light/wink.py,,setup_platform,#Any#Any#Any#Any#,22
Before Change
Setup the Wink lights.
import pywink
add_devices(WinkLight(light, hass) for light in pywink.get_light_bulbs())
class WinkLight(WinkDevice, Light):
After Change
Setup the Wink lights.
import pywink
for light in pywink.get_light_bulbs():
_id = light.object_id() + light.name()
if _id not in hass.data[DOMAIN]["unique_ids"]:
add_devices([WinkLight(light, hass)])
class WinkLight(WinkDevice, Light):
Representation of a Wink light.
def __init__(self, wink, hass):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
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
Project Name: home-assistant/home-assistant
Commit Name: 80a794e587f9f63f28afea741f97e36a7ca8e427
Time: 2017-02-01
Author: wjs.scanlon@gmail.com
File Name: homeassistant/components/climate/wink.py
Class Name:
Method Name: setup_platform