From 9885b3de475a788967054e8163360651c17ce270 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 24 Oct 2021 20:16:15 -1000 Subject: [PATCH] Fix configuration url in gogogate2 (#58365) - I missed that https:// needed to be prepended because the existing device already had the url from previous testing --- homeassistant/components/gogogate2/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/gogogate2/common.py b/homeassistant/components/gogogate2/common.py index c5d8c0f5137..a70a1b6bf81 100644 --- a/homeassistant/components/gogogate2/common.py +++ b/homeassistant/components/gogogate2/common.py @@ -96,8 +96,11 @@ class GoGoGate2Entity(CoordinatorEntity): def device_info(self) -> DeviceInfo: """Device info for the controller.""" data = self.coordinator.data + configuration_url = ( + f"https://{data.remoteaccess}" if data.remoteaccess else None + ) return DeviceInfo( - configuration_url=data.remoteaccess if data.remoteaccess else None, + configuration_url=configuration_url, identifiers={(DOMAIN, str(self._config_entry.unique_id))}, name=self._config_entry.title, manufacturer=MANUFACTURER,