Async syntax 5, light & lock & remote & scene & telegram & helpers (#17019)
This commit is contained in:
parent
9e4c8f45d6
commit
3b5e5cbcd6
28 changed files with 112 additions and 195 deletions
|
@ -4,7 +4,6 @@ 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
|
||||
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, SUPPORT_BRIGHTNESS,
|
||||
|
@ -34,8 +33,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
class WinkLight(WinkDevice, Light):
|
||||
"""Representation of a Wink light."""
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
async def async_added_to_hass(self):
|
||||
"""Call when entity is added to hass."""
|
||||
self.hass.data[DOMAIN]['entities']['light'].append(self)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue