mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 16:45:19 +02:00
Add extra check for ESSID field in case there's a wired connection (#13459)
This commit is contained in:
committed by
Paulus Schoutsen
parent
93b9ec0b0f
commit
38d2702e3c
@@ -98,7 +98,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 = [client for client in clients
|
clients = [client for client in clients
|
||||||
if client['essid'] in self._ssid_filter]
|
if 'essid' in client and
|
||||||
|
client['essid'] in self._ssid_filter]
|
||||||
|
|
||||||
self._clients = {
|
self._clients = {
|
||||||
client['mac']: client
|
client['mac']: client
|
||||||
|
Reference in New Issue
Block a user