parent
cfea4b17e3
commit
cfbbade6d1
12 changed files with 279 additions and 4 deletions
|
@ -4,6 +4,7 @@ Support for Wink lights.
|
|||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/light.wink/
|
||||
"""
|
||||
import asyncio
|
||||
import colorsys
|
||||
|
||||
from homeassistant.components.light import (
|
||||
|
@ -38,6 +39,11 @@ class WinkLight(WinkDevice, Light):
|
|||
"""Initialize the Wink device."""
|
||||
super().__init__(wink, hass)
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Callback when entity is added to hass."""
|
||||
self.hass.data[DOMAIN]['entities']['light'].append(self)
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
"""Return true if light is on."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue