Fix IOLinc sensor (#18250)

This commit is contained in:
Tom Harris authored and Fabian Affolter committed 2018-11-06 10:36:52 +01:00
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