Skip to content

Commit

Permalink
Fix setup of Huawei LTE for which we can't get a MAC address (#29455)
Browse files Browse the repository at this point in the history
Closes #29188
  • Loading branch information
scop authored and balloob committed Dec 5, 2019
1 parent 6c863a8 commit ebc9d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/huawei_lte/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def device_name(self) -> str:
@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."""
Expand Down

0 comments on commit ebc9d17

Please sign in to comment.