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
Greg Laabs 2018-05-18 08:42:09 -07:00 committed by GitHub
parent 12e76ef7c1
commit d7640e6ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: