1 parent
cfea4b17e3
commit
cfbbade6d1
12 files changed
+279
-4
No files matched your search
@@ -4,6 +4,7 @@ Support for Wink sensors.
|
||||
For more details about this platform, please refer to the documentation at
|
||||
at https://home-assistant.io/components/sensor.wink/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from homeassistant.const import TEMP_CELSIUS
|
||||
@@ -58,6 +59,11 @@ class WinkSensorDevice(WinkDevice, Entity):
|
||||
else:
|
||||
self._unit_of_measurement = self.wink.unit()
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Callback when entity is added to hass."""
|
||||
self.hass.data[DOMAIN]['entities']['sensor'].append(self)
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state."""
|
||||
|
||||
Reference in new issue
Block a user