From 28cad9d33fee253fdf1511208233c41821d7da85 Mon Sep 17 00:00:00 2001 From: BasBruss <68892092+basbruss@users.noreply.github.com> Date: Thu, 6 Apr 2023 07:40:19 +0200 Subject: [PATCH] Update default.yaml --- .../lovelace/translations/default.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: > [[[