fix(light): drop redundant name override on api_input light

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.<source>_light.
This commit is contained in:
2026-04-26 02:32:30 +03:00
parent 0a16dc9058
commit 30085c00b9
-5
View File
@@ -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."""