mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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
|
@property
|
||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Return the device information."""
|
"""Return the device information."""
|
||||||
device_information = {
|
device_information = DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self._dev_id)},
|
identifiers={(DOMAIN, self._dev_id)},
|
||||||
"name": self._entity_name,
|
name=self._entity_name,
|
||||||
"manufacturer": "Plugwise",
|
manufacturer="Plugwise",
|
||||||
}
|
)
|
||||||
|
|
||||||
|
if entry := self.coordinator.config_entry:
|
||||||
|
device_information["configuration_url"] = f"http://{entry.data[CONF_HOST]}"
|
||||||
|
|
||||||
if self._model is not None:
|
if self._model is not None:
|
||||||
device_information["model"] = self._model.replace("_", " ").title()
|
device_information["model"] = self._model.replace("_", " ").title()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user