Pull configuration_url from library in gogogate2 (#58318)

pull/58328/head
J. Nick Koston 2021-10-23 23:32:45 -10:00 committed by GitHub
parent cc0c79ac9a
commit 0c94fcecf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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,