mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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
|
# Filter clients to provided SSID list
|
||||||
if self._ssid_filter:
|
if self._ssid_filter:
|
||||||
clients = filter(lambda x: x['essid'] in self._ssid_filter,
|
clients = [client for client in clients
|
||||||
clients)
|
if client['essid'] in self._ssid_filter]
|
||||||
|
|
||||||
self._clients = {
|
self._clients = {
|
||||||
client['mac']: client
|
client['mac']: client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user