From 10ff169c768fc94c70a5cfa6270816963ac17350 Mon Sep 17 00:00:00 2001 From: Steve9F Date: Sun, 23 Dec 2018 04:31:16 -0800 Subject: [PATCH] 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. --- homeassistant/components/binary_sensor/isy994.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/isy994.py b/homeassistant/components/binary_sensor/isy994.py index 31a9606d950..b5d676f233f 100644 --- a/homeassistant/components/binary_sensor/isy994.py +++ b/homeassistant/components/binary_sensor/isy994.py @@ -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