Skip to content

Commit 28cad9d

Browse files
authored
Update default.yaml
1 parent c04f3b4 commit 28cad9d

File tree

1 file changed

+4
-2
lines changed
  • custom_components/ui_lovelace_minimalist/lovelace/translations

1 file changed

+4
-2
lines changed

custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ ulm_translation_engine:
1414
ulm_translation_more_options: "[[[ return hass.resources[hass['language']]['ui.panel.lovelace.editor.edit_card.options']; ]]]"
1515
ulm_active_state: >
1616
[[[
17-
let not_active = ['disarmed','off','closed','not_home','standby','idle','docked','unknown','unavailable','paused']
18-
return !not_active.includes(entity.state)
17+
if (typeof(entity) !== 'undefined' && entity !== undefined){
18+
let not_active = ['disarmed','off','closed','not_home','standby','idle','docked','unknown','unavailable','paused']
19+
return !not_active.includes(entity.state)
20+
}
1921
]]]
2022
ulm_translation_hour: >
2123
[[[

0 commit comments

Comments
 (0)