mirror of
https://github.com/home-assistant/core.git
synced 2025-08-16 11:01:39 +02:00
UOM is a list - not a string. (#3469)
This commit is contained in:
committed by
Paulus Schoutsen
parent
edf812c0ea
commit
b9992a9914
@@ -35,7 +35,7 @@ def setup_platform(hass, config: ConfigType,
|
|||||||
|
|
||||||
for node in isy.filter_nodes(isy.NODES, units=UOM,
|
for node in isy.filter_nodes(isy.NODES, units=UOM,
|
||||||
states=STATES):
|
states=STATES):
|
||||||
if node.dimmable or node.uom == '51':
|
if node.dimmable or '51' in node.uom:
|
||||||
devices.append(ISYLightDevice(node))
|
devices.append(ISYLightDevice(node))
|
||||||
|
|
||||||
add_devices(devices)
|
add_devices(devices)
|
||||||
|
Reference in New Issue
Block a user