1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Updates to demo component and platforms

This commit is contained in:
Paulus Schoutsen
2015-03-16 22:20:31 -07:00
parent a4af51af14
commit 71803658f5
8 changed files with 96 additions and 20 deletions

View File

@@ -21,6 +21,11 @@ class DemoSensor(Device):
self._state = state
self._unit_of_measurement = unit_of_measurement
@property
def should_poll(self):
""" No polling needed for a demo sensor. """
return False
@property
def name(self):
""" Returns the name of the device. """