Add hw info for Shelly devices (#62643)
* Add hw info for Shelly devices * Better rappresentation * Remove date parsing * Added model as requested
This commit is contained in:
parent
849dc0e53a
commit
34e732ebc1
1 changed files with 2 additions and 0 deletions
|
@ -433,6 +433,7 @@ class BlockDeviceWrapper(update_coordinator.DataUpdateCoordinator):
|
||||||
manufacturer="Shelly",
|
manufacturer="Shelly",
|
||||||
model=aioshelly.const.MODEL_NAMES.get(self.model, self.model),
|
model=aioshelly.const.MODEL_NAMES.get(self.model, self.model),
|
||||||
sw_version=sw_version,
|
sw_version=sw_version,
|
||||||
|
hw_version=f"gen{self.device.gen} ({self.model})",
|
||||||
configuration_url=f"http://{self.entry.data[CONF_HOST]}",
|
configuration_url=f"http://{self.entry.data[CONF_HOST]}",
|
||||||
)
|
)
|
||||||
self.device_id = entry.id
|
self.device_id = entry.id
|
||||||
|
@ -717,6 +718,7 @@ class RpcDeviceWrapper(update_coordinator.DataUpdateCoordinator):
|
||||||
manufacturer="Shelly",
|
manufacturer="Shelly",
|
||||||
model=aioshelly.const.MODEL_NAMES.get(self.model, self.model),
|
model=aioshelly.const.MODEL_NAMES.get(self.model, self.model),
|
||||||
sw_version=sw_version,
|
sw_version=sw_version,
|
||||||
|
hw_version=f"gen{self.device.gen} ({self.model})",
|
||||||
configuration_url=f"http://{self.entry.data[CONF_HOST]}",
|
configuration_url=f"http://{self.entry.data[CONF_HOST]}",
|
||||||
)
|
)
|
||||||
self.device_id = entry.id
|
self.device_id = entry.id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue