From 34e732ebc184afa4b192ace8e6ed95f1ef04c397 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Thu, 30 Dec 2021 20:08:29 +0100 Subject: [PATCH] Add hw info for Shelly devices (#62643) * Add hw info for Shelly devices * Better rappresentation * Remove date parsing * Added model as requested --- homeassistant/components/shelly/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/shelly/__init__.py b/homeassistant/components/shelly/__init__.py index 4737dd6317e..703e47566d7 100644 --- a/homeassistant/components/shelly/__init__.py +++ b/homeassistant/components/shelly/__init__.py @@ -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