Update components to use Entity instead of Device
This commit is contained in:
parent
d3f0210b1a
commit
a9324ba9d4
19 changed files with 38 additions and 37 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue