mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix setup of Huawei LTE for which we can't get a MAC address (#29455)
Closes https://github.com/home-assistant/home-assistant/issues/29188
This commit is contained in:
parent
6c863a8948
commit
ebc9d17558
@ -148,7 +148,7 @@ class Router:
|
||||
@property
|
||||
def device_connections(self) -> Set[Tuple[str, str]]:
|
||||
"""Get router connections for device registry."""
|
||||
return {(dr.CONNECTION_NETWORK_MAC, self.mac)}
|
||||
return {(dr.CONNECTION_NETWORK_MAC, self.mac)} if self.mac else set()
|
||||
|
||||
def update(self) -> None:
|
||||
"""Update router data."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user