diff --git a/custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml b/custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml index 5a96be4b6..9c1d529b4 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml @@ -14,8 +14,10 @@ ulm_translation_engine: ulm_translation_more_options: "[[[ return hass.resources[hass['language']]['ui.panel.lovelace.editor.edit_card.options']; ]]]" ulm_active_state: > [[[ - let not_active = ['disarmed','off','closed','not_home','standby','idle','docked','unknown','unavailable','paused'] - return !not_active.includes(entity.state) + if (typeof(entity) !== 'undefined' && entity !== undefined){ + let not_active = ['disarmed','off','closed','not_home','standby','idle','docked','unknown','unavailable','paused'] + return !not_active.includes(entity.state) + } ]]] ulm_translation_hour: > [[[