mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Fix Netgear handeling of missing MAC in device registry (#144722)
This commit is contained in:
parent
ea046f32be
commit
fa3edb5c01
@ -150,7 +150,11 @@ class NetgearRouter:
|
|||||||
if device_entry.via_device_id is None:
|
if device_entry.via_device_id is None:
|
||||||
continue # do not add the router itself
|
continue # do not add the router itself
|
||||||
|
|
||||||
device_mac = dict(device_entry.connections)[dr.CONNECTION_NETWORK_MAC]
|
device_mac = dict(device_entry.connections).get(
|
||||||
|
dr.CONNECTION_NETWORK_MAC
|
||||||
|
)
|
||||||
|
if device_mac is None:
|
||||||
|
continue
|
||||||
self.devices[device_mac] = {
|
self.devices[device_mac] = {
|
||||||
"mac": device_mac,
|
"mac": device_mac,
|
||||||
"name": device_entry.name,
|
"name": device_entry.name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user