1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Add support for entity translation key (#14482)

This commit is contained in:
Paul Bottein
2022-12-01 12:53:44 +01:00
committed by GitHub
parent dff7f653b1
commit dfc461ce05
36 changed files with 150 additions and 47 deletions

View File

@@ -435,7 +435,13 @@ export const localizeStateMessage = (
`${LOGBOOK_LOCALIZE_PATH}.changed_to_state`,
"state",
stateObj
? computeStateDisplay(localize, stateObj, hass.locale, state)
? computeStateDisplay(
localize,
stateObj,
hass.locale,
hass.entities,
state
)
: state
);
};