@@ -64,13 +64,13 @@ popup_thermostat_temperature:
64
64
card :
65
65
type : " custom:button-card"
66
66
variables :
67
- ulm_card_thermostat_preset_mode : " [[[ return variables.ulm_card_thermostat_preset_mode; ]]]"
67
+ ulm_card_thermostat_preset_mode : " [[[ return variables? .ulm_card_thermostat_preset_mode; ]]]"
68
68
styles :
69
69
grid :
70
70
- grid-template-areas : >
71
71
[[[
72
72
var areas = [];
73
- if (variables.ulm_card_thermostat_preset_mode){
73
+ if (variables? .ulm_card_thermostat_preset_mode){
74
74
if (entity.attributes.preset_modes.includes("none")) {
75
75
areas.push("none");
76
76
}
@@ -114,7 +114,7 @@ popup_thermostat_temperature:
114
114
- grid-template-columns : >
115
115
[[[
116
116
var columns = [];
117
- if (variables.ulm_card_thermostat_preset_mode){
117
+ if (variables? .ulm_card_thermostat_preset_mode){
118
118
if (entity.attributes.preset_modes.includes("none")) {
119
119
columns.push("1fr");
120
120
}
@@ -166,7 +166,7 @@ popup_thermostat_temperature:
166
166
auto :
167
167
- display : >
168
168
[[[
169
- if (!variables.ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("auto")) {
169
+ if (!variables? .ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("auto")) {
170
170
return "block";
171
171
} else {
172
172
return "none";
@@ -175,7 +175,7 @@ popup_thermostat_temperature:
175
175
heat :
176
176
- display : >
177
177
[[[
178
- if (!variables.ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("heat")) {
178
+ if (!variables? .ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("heat")) {
179
179
return "block";
180
180
} else {
181
181
return "none";
@@ -184,7 +184,7 @@ popup_thermostat_temperature:
184
184
cool :
185
185
- display : >
186
186
[[[
187
- if (!variables.ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("cool") ) {
187
+ if (!variables? .ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("cool") ) {
188
188
return "block";
189
189
} else {
190
190
return "none";
@@ -193,7 +193,7 @@ popup_thermostat_temperature:
193
193
dry :
194
194
- display : >
195
195
[[[
196
- if ( !variables.ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("dry")) {
196
+ if ( !variables? .ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("dry")) {
197
197
return "block";
198
198
} else {
199
199
return "none";
@@ -202,7 +202,7 @@ popup_thermostat_temperature:
202
202
fan_only :
203
203
- display : >
204
204
[[[
205
- if (!variables.ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("fan_only")) {
205
+ if (!variables? .ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("fan_only")) {
206
206
return "block";
207
207
} else {
208
208
return "none";
@@ -211,7 +211,7 @@ popup_thermostat_temperature:
211
211
heat_cool :
212
212
- display : >
213
213
[[[
214
- if (!variables.ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("heat_cool")) {
214
+ if (!variables? .ulm_card_thermostat_preset_mode && entity.attributes.hvac_modes.includes("heat_cool")) {
215
215
return "block";
216
216
} else {
217
217
return "none";
@@ -220,7 +220,7 @@ popup_thermostat_temperature:
220
220
none :
221
221
- display : >
222
222
[[[
223
- if (variables.ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("none")) {
223
+ if (variables? .ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("none")) {
224
224
return "block";
225
225
} else {
226
226
return "none";
@@ -229,7 +229,7 @@ popup_thermostat_temperature:
229
229
away :
230
230
- display : >
231
231
[[[
232
- if (variables.ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("away")) {
232
+ if (variables? .ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("away")) {
233
233
return "block";
234
234
} else {
235
235
return "none";
@@ -238,7 +238,7 @@ popup_thermostat_temperature:
238
238
comfort :
239
239
- display : >
240
240
[[[
241
- if (variables.ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("comfort")) {
241
+ if (variables? .ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("comfort")) {
242
242
return "block";
243
243
} else {
244
244
return "none";
@@ -247,7 +247,7 @@ popup_thermostat_temperature:
247
247
home :
248
248
- display : >
249
249
[[[
250
- if (variables.ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("home")) {
250
+ if (variables? .ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("home")) {
251
251
return "block";
252
252
} else {
253
253
return "none";
@@ -256,7 +256,7 @@ popup_thermostat_temperature:
256
256
sleep :
257
257
- display : >
258
258
[[[
259
- if (variables.ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("sleep")) {
259
+ if (variables? .ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("sleep")) {
260
260
return "block";
261
261
} else {
262
262
return "none";
@@ -265,7 +265,7 @@ popup_thermostat_temperature:
265
265
activity :
266
266
- display : >
267
267
[[[
268
- if (variables.ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("activity")) {
268
+ if (variables? .ulm_card_thermostat_preset_mode && entity.attributes.preset_modes.includes("activity")) {
269
269
return "block";
270
270
} else {
271
271
return "none";
0 commit comments