Skip to content

Commit

Permalink
Add configuration_url to AsusWrt integration (#58172)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu committed Oct 22, 2021
1 parent f740302 commit 0381585
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions homeassistant/components/asuswrt/router.py
Expand Up @@ -386,13 +386,14 @@ def update_options(self, new_options: dict) -> bool:
@property
def device_info(self) -> DeviceInfo:
"""Return the device information."""
return {
"identifiers": {(DOMAIN, "AsusWRT")},
"name": self._host,
"model": self._model,
"manufacturer": "Asus",
"sw_version": self._sw_v,
}
return DeviceInfo(
identifiers={(DOMAIN, "AsusWRT")},
name=self._host,
model=self._model,
manufacturer="Asus",
sw_version=self._sw_v,
configuration_url=f"http://{self._host}",
)

@property
def signal_device_new(self) -> str:
Expand Down

0 comments on commit 0381585

Please sign in to comment.