Resolve IOLinc sensor name (#19050)
This commit is contained in:
1 parent
66aa7d0e68
commit
9efb90d23c
3 files changed
+4
-3
No files matched your search
@@ -14,6 +14,7 @@ DEPENDENCIES = ['insteon']
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
SENSOR_TYPES = {'openClosedSensor': 'opening',
|
||||
'ioLincSensor': 'opening',
|
||||
'motionSensor': 'motion',
|
||||
'doorSensor': 'door',
|
||||
'wetLeakSensor': 'moisture',
|
||||
@@ -58,7 +59,7 @@ class InsteonBinarySensor(InsteonEntity, BinarySensorDevice):
|
||||
on_val = bool(self._insteon_device_state.value)
|
||||
|
||||
if self._insteon_device_state.name in ['lightSensor',
|
||||
'openClosedSensor']:
|
||||
'ioLincSensor']:
|
||||
return not on_val
|
||||
|
||||
return on_val
|
||||
Reference in new issue
Block a user