mirror of
https://github.com/home-assistant/core.git
synced 2026-02-28 13:56:28 +00:00
Isy fixes (#3457)
* 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:
committed by
Paulus Schoutsen
parent
d6ad4bc22b
commit
35603268ca
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user