UOM is a list - not a string. (#3469)

This commit is contained in:
Teagan Glenn 2016-09-21 09:03:26 -06:00 committed by Paulus Schoutsen
parent edf812c0ea
commit b9992a9914

View File

@ -35,7 +35,7 @@ def setup_platform(hass, config: ConfigType,
for node in isy.filter_nodes(isy.NODES, units=UOM,
states=STATES):
if node.dimmable or node.uom == '51':
if node.dimmable or '51' in node.uom:
devices.append(ISYLightDevice(node))
add_devices(devices)