Fritzbox - Only report a MAC address if it's really there (#3964)

Fixes 'Neither mac or device id passed in'
This commit is contained in:
henryk 2016-10-20 20:04:11 +02:00 committed by Johann Kellerman
parent 3aa1b6a3f8
commit 2b37b4251b

View File

@ -79,7 +79,7 @@ class FritzBoxScanner(object):
self._update_info()
active_hosts = []
for known_host in self.last_results:
if known_host['status'] == '1':
if known_host['status'] == '1' and known_host.get('mac'):
active_hosts.append(known_host['mac'])
return active_hosts