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:
Ville Skyttä authored and Paulus Schoutsen committed 2019-12-04 21:19:25 -08:00
1 parent 6c863a8948
commit ebc9d17558
1 file changed
+1 -1
@@ -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."""