From 68497e6388523f1c5a73f5e373309043e0dec966 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 13 Jan 2023 23:28:12 +0100 Subject: [PATCH] Normalize the light devices' IEEE addresses before retrieving the associated devices --- platypush/plugins/zigbee/mqtt/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/zigbee/mqtt/__init__.py b/platypush/plugins/zigbee/mqtt/__init__.py index 3fd7f6608..61712f4a8 100644 --- a/platypush/plugins/zigbee/mqtt/__init__.py +++ b/platypush/plugins/zigbee/mqtt/__init__.py @@ -1814,6 +1814,7 @@ class ZigbeeMqttPlugin(MqttPlugin): # lgtm [py/missing-call-to-init] Set the state for one or more Zigbee 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] for i, dev in enumerate(devices):