1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Add support for translation_placeholders in zha (#155254)

This commit is contained in:
epenet
2025-10-29 14:08:04 +01:00
committed by GitHub
parent a6c1ce86d8
commit a6ba8fa69c
+3
View File
@@ -61,6 +61,9 @@ class ZHAEntity(LogMixin, RestoreEntity, Entity):
if meta.translation_key is not None:
self._attr_translation_key = meta.translation_key
if meta.translation_placeholders is not None:
self._attr_translation_placeholders = meta.translation_placeholders
@cached_property
def name(self) -> str | UndefinedType | None:
"""Return the name of the entity."""