From 62a4d3852e797c59e664c7276dea55b407bc8aa4 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sat, 20 Feb 2021 22:27:12 -0500 Subject: [PATCH] Fixed TTT box showing up when not needed --- js/component/card/system.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/component/card/system.js b/js/component/card/system.js index 7ac21a2..1685d61 100644 --- a/js/component/card/system.js +++ b/js/component/card/system.js @@ -311,14 +311,6 @@ beestat.component.card.system.prototype.decorate_climate_ = function(parent) { beestat.component.card.system.prototype.decorate_time_to_temperature_ = function(parent) { const thermostat = beestat.cache.thermostat[this.thermostat_id_]; - const container = $.createElement('div').style({ - 'background': beestat.style.color.bluegray.dark, - 'padding': beestat.style.size.gutter / 2, - 'text-align': 'center', - 'margin-top': beestat.style.size.gutter - }); - parent.appendChild(container); - const operating_mode = beestat.thermostat.get_operating_mode( thermostat.thermostat_id ); @@ -328,6 +320,14 @@ beestat.component.card.system.prototype.decorate_time_to_temperature_ = function return; } + const container = $.createElement('div').style({ + 'background': beestat.style.color.bluegray.dark, + 'padding': beestat.style.size.gutter / 2, + 'text-align': 'center', + 'margin-top': beestat.style.size.gutter + }); + parent.appendChild(container); + // Convert "heat_1" etc to "heat" const simplified_operating_mode = operating_mode.replace(/_\d/, '');