From ebc9d175581b28f95757685a76dfe54c8619f132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 5 Dec 2019 07:19:25 +0200 Subject: [PATCH] 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 --- homeassistant/components/huawei_lte/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/huawei_lte/__init__.py b/homeassistant/components/huawei_lte/__init__.py index c4c251aef506e6..ada1f0a8abdcdc 100644 --- a/homeassistant/components/huawei_lte/__init__.py +++ b/homeassistant/components/huawei_lte/__init__.py @@ -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."""