Resolve IOLinc sensor name (#19050)

This commit is contained in:
Tom Harris 2018-12-13 07:52:12 -08:00 committed by Martin Hjelmare
parent 66aa7d0e68
commit 9efb90d23c
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -19,7 +19,7 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.helpers import discovery
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['insteonplm==0.15.1']
REQUIREMENTS = ['insteonplm==0.15.2']
_LOGGER = logging.getLogger(__name__)

View File

@ -536,7 +536,7 @@ ihcsdk==2.2.0
influxdb==5.2.0
# homeassistant.components.insteon
insteonplm==0.15.1
insteonplm==0.15.2
# homeassistant.components.sensor.iperf3
iperf3==0.1.10