You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_scenes_welcome.yaml
Copy file name to clipboardExpand all lines: custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_welcome_scenes.yaml
Copy file name to clipboardExpand all lines: custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/popup_templates/popups/popup_thermostat_temperature.yaml
+38-38
Original file line number
Diff line number
Diff line change
@@ -70,42 +70,42 @@ popup_thermostat_temperature:
70
70
- grid-template-areas: >
71
71
[[[
72
72
var areas = [];
73
-
if (variables.ulm_card_thermostat_preset_mode){
74
-
if (entity.attributes.preset_modes.toString().toLowerCase().includes("none")) {
73
+
if (variables?.ulm_card_thermostat_preset_mode){
74
+
if (entity.attributes?.preset_modes.toString().toLowerCase().includes("none")) {
75
75
areas.push("none");
76
76
}
77
-
if (entity.attributes.preset_modes.toString().toLowerCase().includes("away")) {
77
+
if (entity.attributes?.preset_modes.toString().toLowerCase().includes("away")) {
78
78
areas.push("away");
79
79
}
80
-
if (entity.attributes.preset_modes.toString().toLowerCase().includes("comfort")) {
80
+
if (entity.attributes?.preset_modes.toString().toLowerCase().includes("comfort")) {
81
81
areas.push("comfort");
82
82
}
83
-
if (entity.attributes.preset_modes.toString().toLowerCase().includes("home")) {
83
+
if (entity.attributes?.preset_modes.toString().toLowerCase().includes("home")) {
84
84
areas.push("home");
85
85
}
86
-
if (entity.attributes.preset_modes.toString().toLowerCase().includes("sleep")) {
86
+
if (entity.attributes?.preset_modes.toString().toLowerCase().includes("sleep")) {
87
87
areas.push("sleep");
88
88
}
89
-
if (entity.attributes.preset_modes.toString().toLowerCase().includes("activity")) {
89
+
if (entity.attributes?.preset_modes.toString().toLowerCase().includes("activity")) {
90
90
areas.push("activity");
91
91
}
92
92
} else {
93
-
if (entity.attributes.hvac_modes.toString().toLowerCase().includes("auto")) {
93
+
if (entity.attributes?.hvac_modes.toString().toLowerCase().includes("auto")) {
94
94
areas.push("auto");
95
95
}
96
-
if (entity.attributes.hvac_modes.toString().toLowerCase().includes("heat")) {
96
+
if (entity.attributes?.hvac_modes.toString().toLowerCase().includes("heat")) {
97
97
areas.push("heat");
98
98
}
99
-
if (entity.attributes.hvac_modes.toString().toLowerCase().includes("cool")) {
99
+
if (entity.attributes?.hvac_modes.toString().toLowerCase().includes("cool")) {
100
100
areas.push("cool");
101
101
}
102
-
if (entity.attributes.hvac_modes.toString().toLowerCase().includes("dry")) {
102
+
if (entity.attributes?.hvac_modes.toString().toLowerCase().includes("dry")) {
103
103
areas.push("dry");
104
104
}
105
-
if (entity.attributes.hvac_modes.toString().toLowerCase().includes("fan_only")) {
105
+
if (entity.attributes?.hvac_modes.toString().toLowerCase().includes("fan_only")) {
106
106
areas.push("fan_only");
107
107
}
108
-
if (entity.attributes.hvac_modes.toString().toLowerCase().includes("heat_cool")) {
108
+
if (entity.attributes?.hvac_modes.toString().toLowerCase().includes("heat_cool")) {
0 commit comments