Fix IOLinc sensor (#18250)

This commit is contained in:
Tom Harris 2018-11-06 04:36:52 -05:00 committed by Fabian Affolter
parent c5d0440041
commit ddee5f8b86
3 changed files with 4 additions and 3 deletions

View File

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

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.0']
REQUIREMENTS = ['insteonplm==0.15.1']
_LOGGER = logging.getLogger(__name__)

View File

@ -513,7 +513,7 @@ ihcsdk==2.2.0
influxdb==5.0.0
# homeassistant.components.insteon
insteonplm==0.15.0
insteonplm==0.15.1
# homeassistant.components.sensor.iperf3
iperf3==0.1.10