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