forked from platypush/platypush
Coalesce to empty list if zigbee.mqtt.devices
returns null.
This commit is contained in:
parent
55965e962c
commit
79e24461cb
1 changed files with 1 additions and 1 deletions
|
@ -1080,7 +1080,7 @@ class ZigbeeMqttPlugin(
|
||||||
devices = list(
|
devices = list(
|
||||||
{
|
{
|
||||||
self._preferred_name(device)
|
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)
|
if self._preferred_name(device)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue