Fix VSCode throwing a fit about no backticks

This commit is contained in:
2025-07-07 21:32:42 -04:00
parent d55ad66264
commit c9e4a11604
6 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
${(() => { `${(() => {
const occupancy = hass?.states[this.config?.main_button_floors?.occupancy_entity]?.state || ''; const occupancy = hass?.states[this.config?.main_button_floors?.occupancy_entity]?.state || '';
const hot = hass?.states[this.config?.main_button_floors?.hot_entity]?.state || ''; const hot = hass?.states[this.config?.main_button_floors?.hot_entity]?.state || '';
const cold = hass?.states[this.config?.main_button_floors?.cold_entity]?.state || ''; const cold = hass?.states[this.config?.main_button_floors?.cold_entity]?.state || '';
@@ -39,4 +39,4 @@ ${(() => {
// No CSS string needed // No CSS string needed
return ''; return '';
})()} })()}`

View File

@@ -1,4 +1,4 @@
${(() => { `${(() => {
const occupancy = hass?.states[this.config?.main_button_outdoors?.occupancy_entity]?.state || ''; const occupancy = hass?.states[this.config?.main_button_outdoors?.occupancy_entity]?.state || '';
let bg_color = 'var(--bubble-main-background-color)'; let bg_color = 'var(--bubble-main-background-color)';
@@ -21,4 +21,4 @@ ${(() => {
// No CSS string needed // No CSS string needed
return ''; return '';
})()} })()}`

View File

@@ -1,4 +1,4 @@
${(() => { `${(() => {
const state = hass?.states[this.config?.entity]?.state || ''; const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--bubble-main-background-color)'; let bg_color = 'var(--bubble-main-background-color)';
@@ -21,4 +21,4 @@ ${(() => {
// No CSS string needed // No CSS string needed
return ''; return '';
})()} })()}`

View File

@@ -1,4 +1,4 @@
${(() => { `${(() => {
const state = hass?.states[this.config?.entity]?.state || ''; const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--background-color-2)'; let bg_color = 'var(--background-color-2)';
@@ -21,4 +21,4 @@ ${(() => {
// No CSS string needed // No CSS string needed
return ''; return '';
})()} })()}`

View File

@@ -1,4 +1,4 @@
${(() => { `${(() => {
const state = hass?.states[this.config?.entity]?.state || ''; const state = hass?.states[this.config?.entity]?.state || '';
let bg_color = 'var(--background-color-2)'; let bg_color = 'var(--background-color-2)';
@@ -21,4 +21,4 @@ ${(() => {
// No CSS string needed // No CSS string needed
return ''; return '';
})()} })()}`

View File

@@ -1,4 +1,4 @@
${(() => { `${(() => {
const hot = hass?.states[this.config?.popup_temperature_button?.hot_entity]?.state || ''; const hot = hass?.states[this.config?.popup_temperature_button?.hot_entity]?.state || '';
const cold = hass?.states[this.config?.popup_temperature_button?.cold_entity]?.state || ''; const cold = hass?.states[this.config?.popup_temperature_button?.cold_entity]?.state || '';
@@ -29,4 +29,4 @@ ${(() => {
// No CSS string needed // No CSS string needed
return ''; return '';
})()} })()}`