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

This commit is contained in:
Cedric Van Goethem authored and Paulus Schoutsen committed 2018-03-25 18:03:23 -07:00
1 parent 8ab5978db3
commit a5ae77ab93
1 file changed
+2 -1
@@ -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