1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +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

@@ -1227,6 +1227,7 @@ async def test_entity_info_added_to_entity_registry(hass):
icon="nice:icon",
name="best name",
supported_features=5,
translation_key="my_translation_key",
unique_id="default",
unit_of_measurement=PERCENTAGE,
)
@@ -1251,6 +1252,7 @@ async def test_entity_info_added_to_entity_registry(hass):
original_icon="nice:icon",
original_name="best name",
supported_features=5,
translation_key="my_translation_key",
unit_of_measurement=PERCENTAGE,
)