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 8ab5978db3
commit a5ae77ab93

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