From c9e4a11604a28a2c1f688553819fae688db0e083 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 7 Jul 2025 21:32:42 -0400 Subject: [PATCH] Fix VSCode throwing a fit about no backticks --- bubble/Main Button Floors/code.js | 4 ++-- bubble/Main Button Outdoors/code.js | 4 ++-- bubble/Main Button State Red/code.js | 4 ++-- bubble/Popup Accent Color Button/code.js | 4 ++-- bubble/Popup Security Button/code.js | 4 ++-- bubble/Popup Temperature Button/code.js | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bubble/Main Button Floors/code.js b/bubble/Main Button Floors/code.js index 7142dd4..f50ad5c 100644 --- a/bubble/Main Button Floors/code.js +++ b/bubble/Main Button Floors/code.js @@ -1,4 +1,4 @@ -${(() => { +`${(() => { 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 cold = hass?.states[this.config?.main_button_floors?.cold_entity]?.state || ''; @@ -39,4 +39,4 @@ ${(() => { // No CSS string needed return ''; -})()} +})()}` diff --git a/bubble/Main Button Outdoors/code.js b/bubble/Main Button Outdoors/code.js index 37d5658..2a89dde 100644 --- a/bubble/Main Button Outdoors/code.js +++ b/bubble/Main Button Outdoors/code.js @@ -1,4 +1,4 @@ -${(() => { +`${(() => { const occupancy = hass?.states[this.config?.main_button_outdoors?.occupancy_entity]?.state || ''; let bg_color = 'var(--bubble-main-background-color)'; @@ -21,4 +21,4 @@ ${(() => { // No CSS string needed return ''; -})()} +})()}` diff --git a/bubble/Main Button State Red/code.js b/bubble/Main Button State Red/code.js index 66c6f31..fad42b5 100644 --- a/bubble/Main Button State Red/code.js +++ b/bubble/Main Button State Red/code.js @@ -1,4 +1,4 @@ -${(() => { +`${(() => { const state = hass?.states[this.config?.entity]?.state || ''; let bg_color = 'var(--bubble-main-background-color)'; @@ -21,4 +21,4 @@ ${(() => { // No CSS string needed return ''; -})()} +})()}` diff --git a/bubble/Popup Accent Color Button/code.js b/bubble/Popup Accent Color Button/code.js index 7b3e548..f12d819 100644 --- a/bubble/Popup Accent Color Button/code.js +++ b/bubble/Popup Accent Color Button/code.js @@ -1,4 +1,4 @@ -${(() => { +`${(() => { const state = hass?.states[this.config?.entity]?.state || ''; let bg_color = 'var(--background-color-2)'; @@ -21,4 +21,4 @@ ${(() => { // No CSS string needed return ''; -})()} +})()}` diff --git a/bubble/Popup Security Button/code.js b/bubble/Popup Security Button/code.js index d874739..5c6897c 100644 --- a/bubble/Popup Security Button/code.js +++ b/bubble/Popup Security Button/code.js @@ -1,4 +1,4 @@ -${(() => { +`${(() => { const state = hass?.states[this.config?.entity]?.state || ''; let bg_color = 'var(--background-color-2)'; @@ -21,4 +21,4 @@ ${(() => { // No CSS string needed return ''; -})()} +})()}` diff --git a/bubble/Popup Temperature Button/code.js b/bubble/Popup Temperature Button/code.js index 2203356..0a5b598 100644 --- a/bubble/Popup Temperature Button/code.js +++ b/bubble/Popup Temperature Button/code.js @@ -1,4 +1,4 @@ -${(() => { +`${(() => { const hot = hass?.states[this.config?.popup_temperature_button?.hot_entity]?.state || ''; const cold = hass?.states[this.config?.popup_temperature_button?.cold_entity]?.state || ''; @@ -29,4 +29,4 @@ ${(() => { // No CSS string needed return ''; -})()} +})()}`