mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00: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:
parent
12e76ef7c1
commit
d7640e6ec3
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user