Add X10 devices as ISY994 switches (#26342)

* Add X10 devices as switches

Signed-off-by: Taylor Silva <taylorsilva@outlook.com>

* Add logging message for when unsupported device is found.

This will help a user figure out why they aren't seeing all devices.

Signed-off-by: Taylor Silva <taylorsilva@outlook.com>

* Update homeassistant/components/isy994/__init__.py

Co-Authored-By: Martin Hjelmare <marhje52@kth.se>

* Update homeassistant/components/isy994/__init__.py

100 is too generic of an ISY uom. We don't want to accidentally add non-switch devices.
This commit is contained in:
Taylor Silva 2019-09-04 01:00:20 -04:00 committed by Martin Hjelmare
parent 2f0eb07624
commit ca97bba4b4

View File

@ -138,7 +138,7 @@ NODE_FILTERS = {
"Siren",
"Siren_ADV",
],
"insteon_type": ["2.", "9.10.", "9.11."],
"insteon_type": ["2.", "9.10.", "9.11.", "113."],
},
}
@ -182,6 +182,7 @@ def _check_for_node_def(hass: HomeAssistant, node, single_domain: str = None) ->
hass.data[ISY994_NODES][domain].append(node)
return True
_LOGGER.warning("Unsupported node: %s, type: %s", node.name, node.type)
return False