mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Pull configuration_url from library in gogogate2 (#58318)
This commit is contained in:
parent
cc0c79ac9a
commit
0c94fcecf6
@ -96,11 +96,8 @@ class GoGoGate2Entity(CoordinatorEntity):
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Device info for the controller."""
|
||||
data = self.coordinator.data
|
||||
url = None
|
||||
if data.model.startswith("ismartgate"):
|
||||
url = f"https://{self._config_entry.unique_id}.isgaccess.com"
|
||||
return DeviceInfo(
|
||||
configuration_url=url,
|
||||
configuration_url=data.remoteaccess if data.remoteaccess else None,
|
||||
identifiers={(DOMAIN, str(self._config_entry.unique_id))},
|
||||
name=self._config_entry.title,
|
||||
manufacturer=MANUFACTURER,
|
||||
|
Loading…
x
Reference in New Issue
Block a user