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:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user