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:
@@ -113,11 +113,6 @@ class ApiInputLight(CoordinatorEntity, LightEntity, RestoreEntity):
|
|||||||
"model": "API Input CSS Source",
|
"model": "API Input CSS Source",
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
|
||||||
def name(self) -> str:
|
|
||||||
"""Return the entity name."""
|
|
||||||
return self._source_name
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self) -> bool:
|
def is_on(self) -> bool:
|
||||||
"""Return true if the light is on."""
|
"""Return true if the light is on."""
|
||||||
|
|||||||
Reference in New Issue
Block a user