Fix IOLinc sensor (#18250)
This commit is contained in:
parent
c5d0440041
commit
ddee5f8b86
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue