mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix some ISY sensors not getting detected as binary sensors (#14497)
Sensors that were defined via sensor_string were not getting properly identified as binary sensors when they had a uom defining them as binary (the other three methods of detecting binary sensors worked though.)
This commit is contained in:
@@ -202,7 +202,7 @@ def _check_for_uom_id(hass: HomeAssistant, node,
|
|||||||
node_uom = set(map(str.lower, node.uom))
|
node_uom = set(map(str.lower, node.uom))
|
||||||
|
|
||||||
if uom_list:
|
if uom_list:
|
||||||
if node_uom.intersection(NODE_FILTERS[single_domain]['uom']):
|
if node_uom.intersection(uom_list):
|
||||||
hass.data[ISY994_NODES][single_domain].append(node)
|
hass.data[ISY994_NODES][single_domain].append(node)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user