mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Add device configuration URL to Plugwise (#57696)
This commit is contained in:
parent
a584d7b5c9
commit
5382ab8562
@ -192,11 +192,14 @@ class SmileGateway(CoordinatorEntity):
|
||||
@property
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Return the device information."""
|
||||
device_information = {
|
||||
"identifiers": {(DOMAIN, self._dev_id)},
|
||||
"name": self._entity_name,
|
||||
"manufacturer": "Plugwise",
|
||||
}
|
||||
device_information = DeviceInfo(
|
||||
identifiers={(DOMAIN, self._dev_id)},
|
||||
name=self._entity_name,
|
||||
manufacturer="Plugwise",
|
||||
)
|
||||
|
||||
if entry := self.coordinator.config_entry:
|
||||
device_information["configuration_url"] = f"http://{entry.data[CONF_HOST]}"
|
||||
|
||||
if self._model is not None:
|
||||
device_information["model"] = self._model.replace("_", " ").title()
|
||||
|
Loading…
x
Reference in New Issue
Block a user