mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47: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:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Device info for the controller."""
|
"""Device info for the controller."""
|
||||||
data = self.coordinator.data
|
data = self.coordinator.data
|
||||||
url = None
|
|
||||||
if data.model.startswith("ismartgate"):
|
|
||||||
url = f"https://{self._config_entry.unique_id}.isgaccess.com"
|
|
||||||
return DeviceInfo(
|
return DeviceInfo(
|
||||||
configuration_url=url,
|
configuration_url=data.remoteaccess if data.remoteaccess else None,
|
||||||
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