forked from platypush/platypush
Normalize the light devices' IEEE addresses before retrieving the associated devices
This commit is contained in:
parent
22a566a88b
commit
68497e6388
1 changed files with 1 additions and 0 deletions
|
@ -1814,6 +1814,7 @@ class ZigbeeMqttPlugin(MqttPlugin): # lgtm [py/missing-call-to-init]
|
||||||
Set the state for one or more Zigbee lights.
|
Set the state for one or more Zigbee lights.
|
||||||
"""
|
"""
|
||||||
lights = [lights] if isinstance(lights, str) else lights
|
lights = [lights] if isinstance(lights, str) else lights
|
||||||
|
lights = [str(self._ieee_address(light)) for light in lights]
|
||||||
devices = [self._get_device_info(light) for light in lights]
|
devices = [self._get_device_info(light) for light in lights]
|
||||||
|
|
||||||
for i, dev in enumerate(devices):
|
for i, dev in enumerate(devices):
|
||||||
|
|
Loading…
Reference in a new issue