diff --git a/platypush/plugins/zigbee/mqtt/__init__.py b/platypush/plugins/zigbee/mqtt/__init__.py index 24da49b73..a6ef93541 100644 --- a/platypush/plugins/zigbee/mqtt/__init__.py +++ b/platypush/plugins/zigbee/mqtt/__init__.py @@ -1080,7 +1080,7 @@ class ZigbeeMqttPlugin( devices = list( { self._preferred_name(device) - for device in list(self.devices(**kwargs).output) # type: ignore + for device in list(self.devices(**kwargs).output or []) if self._preferred_name(device) } )