1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-28 13:56:28 +00:00
* Fix binary sensor

* Add 'stopped' to states

* Add '%' to states for light

* ISY light brightness support

* Method case

* Z-Wave unit 51 is a light
This commit is contained in:
Teagan Glenn
2016-09-19 21:16:51 -06:00
committed by Paulus Schoutsen
parent d6ad4bc22b
commit 35603268ca
3 changed files with 12 additions and 12 deletions

View File

@@ -59,7 +59,7 @@ class ISYBinarySensorDevice(isy.ISYDevice, BinarySensorDevice):
@property
def is_on(self) -> bool:
"""Get whether the ISY994 binary sensor device is on."""
return bool(self.state)
return bool(self.value)
class ISYBinarySensorProgram(ISYBinarySensorDevice):
@@ -69,8 +69,3 @@ class ISYBinarySensorProgram(ISYBinarySensorDevice):
"""Initialize the ISY994 binary sensor program."""
ISYBinarySensorDevice.__init__(self, node)
self._name = name
@property
def is_on(self):
"""Get whether the ISY994 binary sensor program is on."""
return bool(self.value)