Add extra check for ESSID field in case there's a wired connection (#13459)

This commit is contained in:
Cedric Van Goethem 2018-03-26 02:03:23 +01:00 committed by Paulus Schoutsen
parent 93b9ec0b0f
commit 38d2702e3c

View File

@ -98,7 +98,8 @@ class UnifiScanner(DeviceScanner):
# Filter clients to provided SSID list
if self._ssid_filter:
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 = {
client['mac']: client