From 5ca3c06f96ad1e500b96b9ecf1fecd5a10a5e7fa Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 2 Nov 2022 23:32:21 +0100 Subject: [PATCH] Normalize device names in set_lights --- 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 4faaf9a136..2fc5138400 100644 --- a/platypush/plugins/zigbee/mqtt/__init__.py +++ b/platypush/plugins/zigbee/mqtt/__init__.py @@ -1677,6 +1677,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 = [self._ieee_address(t) for t in lights] devices = [ dev for dev in self._get_network_info().get('devices', [])