mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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
This commit is contained in:
parent
c950f1ccfa
commit
9885b3de47
@ -96,8 +96,11 @@ class GoGoGate2Entity(CoordinatorEntity):
|
|||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Device info for the controller."""
|
"""Device info for the controller."""
|
||||||
data = self.coordinator.data
|
data = self.coordinator.data
|
||||||
|
configuration_url = (
|
||||||
|
f"https://{data.remoteaccess}" if data.remoteaccess else None
|
||||||
|
)
|
||||||
return DeviceInfo(
|
return DeviceInfo(
|
||||||
configuration_url=data.remoteaccess if data.remoteaccess else None,
|
configuration_url=configuration_url,
|
||||||
identifiers={(DOMAIN, str(self._config_entry.unique_id))},
|
identifiers={(DOMAIN, str(self._config_entry.unique_id))},
|
||||||
name=self._config_entry.title,
|
name=self._config_entry.title,
|
||||||
manufacturer=MANUFACTURER,
|
manufacturer=MANUFACTURER,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user