Change ISY binary_sensor subnode to hex (#19471)
The subnode id for the motion enable node of Insteon 2844-222 motion sensor II on the ISY is 'D'. The binary_sensory/isy994.py assumed this value will be an integer rather than hex and fails. Changing line 55 to subnode_id = int(node.nid[-1], 16) fixes the issue.
This commit is contained in:
parent
0b22880f22
commit
10ff169c76
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def setup_platform(hass, config: ConfigType,
|
|||
node.nid, node.parent_nid)
|
||||
else:
|
||||
device_type = _detect_device_type(node)
|
||||
subnode_id = int(node.nid[-1])
|
||||
subnode_id = int(node.nid[-1], 16)
|
||||
if device_type in ('opening', 'moisture'):
|
||||
# These sensors use an optional "negative" subnode 2 to snag
|
||||
# all state changes
|
||||
|
|
Loading…
Add table
Reference in a new issue