mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
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
@ -433,6 +433,7 @@ class BlockDeviceWrapper(update_coordinator.DataUpdateCoordinator):
|
||||
manufacturer="Shelly",
|
||||
model=aioshelly.const.MODEL_NAMES.get(self.model, self.model),
|
||||
sw_version=sw_version,
|
||||
hw_version=f"gen{self.device.gen} ({self.model})",
|
||||
configuration_url=f"http://{self.entry.data[CONF_HOST]}",
|
||||
)
|
||||
self.device_id = entry.id
|
||||
@ -717,6 +718,7 @@ class RpcDeviceWrapper(update_coordinator.DataUpdateCoordinator):
|
||||
manufacturer="Shelly",
|
||||
model=aioshelly.const.MODEL_NAMES.get(self.model, self.model),
|
||||
sw_version=sw_version,
|
||||
hw_version=f"gen{self.device.gen} ({self.model})",
|
||||
configuration_url=f"http://{self.entry.data[CONF_HOST]}",
|
||||
)
|
||||
self.device_id = entry.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user