diff --git a/src/data/device_automation.ts b/src/data/device_automation.ts index eb0ec9ebdc..b984ac9001 100644 --- a/src/data/device_automation.ts +++ b/src/data/device_automation.ts @@ -178,7 +178,11 @@ const getEntityName = ( entityId: string | undefined ): string => { if (!entityId) { - return ""; + return ( + "<" + + hass.localize("ui.panel.config.automation.editor.unknown_entity") + + ">" + ); } if (entityId.includes(".")) { const state = hass.states[entityId]; @@ -191,7 +195,11 @@ const getEntityName = ( if (entityReg) { return computeEntityRegistryName(hass, entityReg) || entityId; } - return ""; + return ( + "<" + + hass.localize("ui.panel.config.automation.editor.unknown_entity") + + ">" + ); }; export const localizeDeviceAutomationAction = ( diff --git a/src/translations/en.json b/src/translations/en.json index 833cdf2eb7..3cc624eac6 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2837,6 +2837,7 @@ "edit_ui": "Edit in visual editor", "copy_to_clipboard": "Copy to clipboard", "search_in": "Search ยท {group}", + "unknown_entity": "unknown entity", "triggers": { "name": "Triggers", "header": "When",