mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix IOLinc sensor (#18250)
This commit is contained in:
parent
c5d0440041
commit
ddee5f8b86
@ -57,7 +57,8 @@ class InsteonBinarySensor(InsteonEntity, BinarySensorDevice):
|
|||||||
"""Return the boolean response if the node is on."""
|
"""Return the boolean response if the node is on."""
|
||||||
on_val = bool(self._insteon_device_state.value)
|
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 not on_val
|
||||||
|
|
||||||
return on_val
|
return on_val
|
||||||
|
@ -19,7 +19,7 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
from homeassistant.helpers import discovery
|
from homeassistant.helpers import discovery
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
REQUIREMENTS = ['insteonplm==0.15.0']
|
REQUIREMENTS = ['insteonplm==0.15.1']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -513,7 +513,7 @@ ihcsdk==2.2.0
|
|||||||
influxdb==5.0.0
|
influxdb==5.0.0
|
||||||
|
|
||||||
# homeassistant.components.insteon
|
# homeassistant.components.insteon
|
||||||
insteonplm==0.15.0
|
insteonplm==0.15.1
|
||||||
|
|
||||||
# homeassistant.components.sensor.iperf3
|
# homeassistant.components.sensor.iperf3
|
||||||
iperf3==0.1.10
|
iperf3==0.1.10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user