Update components to use Entity instead of Device

This commit is contained in:
Paulus Schoutsen 2015-03-21 19:16:13 -07:00
parent d3f0210b1a
commit a9324ba9d4
19 changed files with 38 additions and 37 deletions

View file

@ -1,5 +1,5 @@
""" Support for Wink sensors. """
from homeassistant.helpers.device import Device
from homeassistant.helpers.entity import Entity
from homeassistant.const import TEMP_CELCIUS, ATTR_BATTERY_LEVEL
@ -12,7 +12,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
])
class DemoSensor(Device):
class DemoSensor(Entity):
""" A Demo sensor. """
def __init__(self, name, state, unit_of_measurement, battery):