From 30085c00b93599e5a86657d80f2437bd6adf6bf1 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sun, 26 Apr 2026 02:32:30 +0300 Subject: [PATCH] fix(light): drop redundant name override on api_input light MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The name property returned the source name, which is also the device name — combined with _attr_has_entity_name=True this produced entity ids like light.api_input_api_input. Removing it lets the translation key drive the entity name (Light / Подсветка), yielding light._light. --- custom_components/ledgrab/light.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/custom_components/ledgrab/light.py b/custom_components/ledgrab/light.py index 2976f55..11b1bf9 100644 --- a/custom_components/ledgrab/light.py +++ b/custom_components/ledgrab/light.py @@ -113,11 +113,6 @@ class ApiInputLight(CoordinatorEntity, LightEntity, RestoreEntity): "model": "API Input CSS Source", } - @property - def name(self) -> str: - """Return the entity name.""" - return self._source_name - @property def is_on(self) -> bool: """Return true if the light is on."""