From 14ec7e5f7655e21fa15c9fe6136ca008f72cd5df Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Wed, 17 Jul 2024 09:04:40 +0200 Subject: [PATCH] Set `DeviceInfo.model_id` in Shelly integration (#122040) --- homeassistant/components/shelly/coordinator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/shelly/coordinator.py b/homeassistant/components/shelly/coordinator.py index ea9bb4bbabb..a4b848bb7f2 100644 --- a/homeassistant/components/shelly/coordinator.py +++ b/homeassistant/components/shelly/coordinator.py @@ -145,9 +145,10 @@ class ShellyCoordinatorBase[_DeviceT: BlockDevice | RpcDevice]( name=self.name, connections={(CONNECTION_NETWORK_MAC, self.mac)}, manufacturer="Shelly", - model=MODEL_NAMES.get(self.model, self.model), + model=MODEL_NAMES.get(self.model), + model_id=self.model, sw_version=self.sw_version, - hw_version=f"gen{get_device_entry_gen(self.entry)} ({self.model})", + hw_version=f"gen{get_device_entry_gen(self.entry)}", configuration_url=f"http://{get_host(self.entry.data[CONF_HOST])}:{get_http_port(self.entry.data)}", ) self.device_id = device_entry.id