mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Change Unifi SSID filtering to list comprehension (#12344)
Changed from filter to list comprehension.
This commit is contained in:
parent
870728f68f
commit
52f57b755e
@ -99,8 +99,8 @@ class UnifiScanner(DeviceScanner):
|
||||
|
||||
# Filter clients to provided SSID list
|
||||
if self._ssid_filter:
|
||||
clients = filter(lambda x: x['essid'] in self._ssid_filter,
|
||||
clients)
|
||||
clients = [client for client in clients
|
||||
if client['essid'] in self._ssid_filter]
|
||||
|
||||
self._clients = {
|
||||
client['mac']: client
|
||||
|
Loading…
x
Reference in New Issue
Block a user