From 27f6c6fdf4abd9236130b9dca45cf9e842f97c8e Mon Sep 17 00:00:00 2001 From: rappenze Date: Sun, 22 Oct 2023 22:11:43 +0200 Subject: [PATCH] Add model info in fibaro integration (#102551) --- homeassistant/components/fibaro/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/fibaro/__init__.py b/homeassistant/components/fibaro/__init__.py index 55b41372faa..cdfa7f6a864 100644 --- a/homeassistant/components/fibaro/__init__.py +++ b/homeassistant/components/fibaro/__init__.py @@ -101,6 +101,7 @@ class FibaroController: self._event_callbacks: dict[int, list[Callable[[FibaroEvent], None]]] = {} self.hub_serial: str # Unique serial number of the hub self.hub_name: str # The friendly name of the hub + self.hub_model: str self.hub_software_version: str self.hub_api_url: str = config[CONF_URL] # Device infos by fibaro device id @@ -113,6 +114,7 @@ class FibaroController: info = self._client.read_info() self.hub_serial = info.serial_number self.hub_name = info.hc_name + self.hub_model = info.platform self.hub_software_version = info.current_version if connected is False: @@ -409,7 +411,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: serial_number=controller.hub_serial, manufacturer="Fibaro", name=controller.hub_name, - model=controller.hub_serial, + model=controller.hub_model, sw_version=controller.hub_software_version, configuration_url=controller.hub_api_url.removesuffix("/api/"), )