mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Resolve IOLinc sensor name (#19050)
This commit is contained in:
parent
66aa7d0e68
commit
9efb90d23c
@ -14,6 +14,7 @@ DEPENDENCIES = ['insteon']
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
SENSOR_TYPES = {'openClosedSensor': 'opening',
|
SENSOR_TYPES = {'openClosedSensor': 'opening',
|
||||||
|
'ioLincSensor': 'opening',
|
||||||
'motionSensor': 'motion',
|
'motionSensor': 'motion',
|
||||||
'doorSensor': 'door',
|
'doorSensor': 'door',
|
||||||
'wetLeakSensor': 'moisture',
|
'wetLeakSensor': 'moisture',
|
||||||
@ -58,7 +59,7 @@ class InsteonBinarySensor(InsteonEntity, BinarySensorDevice):
|
|||||||
on_val = bool(self._insteon_device_state.value)
|
on_val = bool(self._insteon_device_state.value)
|
||||||
|
|
||||||
if self._insteon_device_state.name in ['lightSensor',
|
if self._insteon_device_state.name in ['lightSensor',
|
||||||
'openClosedSensor']:
|
'ioLincSensor']:
|
||||||
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.1']
|
REQUIREMENTS = ['insteonplm==0.15.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ ihcsdk==2.2.0
|
|||||||
influxdb==5.2.0
|
influxdb==5.2.0
|
||||||
|
|
||||||
# homeassistant.components.insteon
|
# homeassistant.components.insteon
|
||||||
insteonplm==0.15.1
|
insteonplm==0.15.2
|
||||||
|
|
||||||
# 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