From 061a1be2bc40a0acd55e5dcc10dfa9f0a982b9cd Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Thu, 24 Apr 2025 13:49:43 +0200 Subject: [PATCH] Use DeviceInfo in the Shelly RPC entity base class (#143565) Use DeviceInfo --- homeassistant/components/shelly/entity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/shelly/entity.py b/homeassistant/components/shelly/entity.py index e8bf0d61b06..806f5fea700 100644 --- a/homeassistant/components/shelly/entity.py +++ b/homeassistant/components/shelly/entity.py @@ -399,9 +399,9 @@ class ShellyRpcEntity(CoordinatorEntity[ShellyRpcCoordinator]): """Initialize Shelly entity.""" super().__init__(coordinator) self.key = key - self._attr_device_info = { - "connections": {(CONNECTION_NETWORK_MAC, coordinator.mac)} - } + self._attr_device_info = DeviceInfo( + connections={(CONNECTION_NETWORK_MAC, coordinator.mac)} + ) self._attr_unique_id = f"{coordinator.mac}-{key}" self._attr_name = get_rpc_entity_name(coordinator.device, key)