From 61c79ca0c020ece8e367b9be4bfbd900e189ace6 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 23 Mar 2025 04:42:41 -0400 Subject: [PATCH] Improve templating in basement climate flows --- climate/basement/basement_off.js | 2 +- climate/basement/basement_on.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/climate/basement/basement_off.js b/climate/basement/basement_off.js index 4e86f18..ae01ee5 100644 --- a/climate/basement/basement_off.js +++ b/climate/basement/basement_off.js @@ -20,7 +20,7 @@ if (outsideTemp > 32) { if (allowed === 'on') { if (power === 'on') { msg.preset = preset - node.status({fill:'green',shape:'dot',text:'Preset ' + preset}) + node.status({fill:'green',shape:'dot',text:`Preset ${preset}`}) node.send(msg,null) } else { node.status({fill:'red',shape:'ring',text:'Heater Shutoff'}) diff --git a/climate/basement/basement_on.js b/climate/basement/basement_on.js index 91b1b18..ab02ed2 100644 --- a/climate/basement/basement_on.js +++ b/climate/basement/basement_on.js @@ -22,7 +22,7 @@ if (todaysHighTemp < 55) { if (allowed === 'on') { if (power === 'on') { - node.status({fill:'green',shape:'dot',text:'Heater Needed: ' + reason}) + node.status({fill:'green',shape:'dot',text:`Heater Needed: ${reason}`}) node.send(msg,null) } else { node.status({fill:'red',shape:'ring',text:'Heater Not Needed'})