1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add translation_key property to entites (#82701)

* Add translation_key attribute to entity state

* Update accuweather test

* Index entity translation keys by platform

* Store translation key in entity registry
This commit is contained in:
Erik Montnemery
2022-12-01 09:34:09 +01:00
committed by GitHub
parent 843f537109
commit 8e617bbc1d
15 changed files with 127 additions and 32 deletions

View File

@@ -616,6 +616,7 @@ class EntityPlatform:
original_name=entity.name,
suggested_object_id=suggested_object_id,
supported_features=entity.supported_features,
translation_key=entity.translation_key,
unit_of_measurement=entity.unit_of_measurement,
)