Pull configuration_url from library in gogogate2 (#58318)
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…
Reference in New Issue