From d2bcf88bbfd050410e05a5ab99d1b678508e3f24 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Wed, 27 Sep 2023 09:39:57 +0200 Subject: [PATCH] Set device name as entity name for Comelit lights (#100986) Fix entity name for Comelit lights --- homeassistant/components/comelit/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/comelit/light.py b/homeassistant/components/comelit/light.py index a4a534025f0..64fb081243a 100644 --- a/homeassistant/components/comelit/light.py +++ b/homeassistant/components/comelit/light.py @@ -36,6 +36,7 @@ class ComelitLightEntity(CoordinatorEntity[ComelitSerialBridge], LightEntity): """Light device.""" _attr_has_entity_name = True + _attr_name = None def __init__( self, @@ -47,7 +48,6 @@ class ComelitLightEntity(CoordinatorEntity[ComelitSerialBridge], LightEntity): self._api = coordinator.api self._device = device super().__init__(coordinator) - self._attr_name = device.name self._attr_unique_id = f"{config_entry_unique_id}-{device.index}" self._attr_device_info = self.coordinator.platform_device_info(device, LIGHT)