Add configuration_url to AsusWrt integration (#58172)

This commit is contained in:
Maciej Bieniek 2021-10-22 11:08:46 +02:00 committed by GitHub
parent f740302287
commit 038158508c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,13 +386,14 @@ class AsusWrtRouter:
@property @property
def device_info(self) -> DeviceInfo: def device_info(self) -> DeviceInfo:
"""Return the device information.""" """Return the device information."""
return { return DeviceInfo(
"identifiers": {(DOMAIN, "AsusWRT")}, identifiers={(DOMAIN, "AsusWRT")},
"name": self._host, name=self._host,
"model": self._model, model=self._model,
"manufacturer": "Asus", manufacturer="Asus",
"sw_version": self._sw_v, sw_version=self._sw_v,
} configuration_url=f"http://{self._host}",
)
@property @property
def signal_device_new(self) -> str: def signal_device_new(self) -> str: