From 510c10bd9f0cc8a07b3598f43c170487bd8ce5da Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 30 Mar 2024 19:46:24 +0100 Subject: [PATCH] Improve device info --- custom_components/hon/entity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/hon/entity.py b/custom_components/hon/entity.py index 7e459ff..0f40b20 100644 --- a/custom_components/hon/entity.py +++ b/custom_components/hon/entity.py @@ -42,10 +42,12 @@ class HonEntity(CoordinatorEntity[DataUpdateCoordinator[dict[str, Any]]]): def device_info(self) -> DeviceInfo: return DeviceInfo( identifiers={(DOMAIN, self._device.unique_id)}, - manufacturer=self._device.get("brand", ""), + manufacturer=self._device.get("brand", "").capitalize(), name=self._device.nick_name, model=self._device.model_name, sw_version=self._device.get("fwVersion", ""), + hw_version=f"{self._device.appliance_type}{self._device.model_id}", + serial_number=self._device.get("serialNumber", "") ) @callback