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.)pull/14403/merge
parent
12e76ef7c1
commit
d7640e6ec3
|
@ -202,7 +202,7 @@ def _check_for_uom_id(hass: HomeAssistant, node,
|
|||
node_uom = set(map(str.lower, node.uom))
|
||||
|
||||
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)
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue