Fix IOLinc sensor (#18250)
This commit is contained in:
1 parent
c5d0440041
commit
ddee5f8b86
3 files changed
+4
-3
No files matched your search
@@ -57,7 +57,8 @@ class InsteonBinarySensor(InsteonEntity, BinarySensorDevice):
|
||||
"""Return the boolean response if the node is on."""
|
||||
on_val = bool(self._insteon_device_state.value)
|
||||
|
||||
if self._insteon_device_state.name == 'lightSensor':
|
||||
if self._insteon_device_state.name in ['lightSensor',
|
||||
'openClosedSensor']:
|
||||
return not on_val
|
||||
|
||||
return on_val
|
||||
Reference in new issue
Block a user