Netgear skip devices withouth mac (#76626)

skip devices withouth mac
This commit is contained in:
starkillerOG 2022-08-13 15:17:49 +02:00 committed by GitHub
parent b969ed00b9
commit db03c273f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,9 @@ class NetgearRouter:
_LOGGER.debug("Netgear scan result: \n%s", ntg_devices)
for ntg_device in ntg_devices:
if ntg_device.mac is None:
continue
device_mac = format_mac(ntg_device.mac)
if not self.devices.get(device_mac):