From 71dad59537a967f68835ff3487e30ecd27910d98 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 2 Feb 2021 22:27:39 -0500 Subject: [PATCH] Removed a reference to ecobee_thermostat that was no longer needed --- js/layer/load.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/js/layer/load.js b/js/layer/load.js index fc4bc28..db13632 100644 --- a/js/layer/load.js +++ b/js/layer/load.js @@ -154,9 +154,6 @@ beestat.layer.load.prototype.decorate_ = function(parent) { var thermostat = beestat.cache.thermostat[ beestat.setting('thermostat_id') ]; - var ecobee_thermostat = beestat.cache.ecobee_thermostat[ - thermostat.ecobee_thermostat_id - ]; // Set the document title to include the thermostat name if (thermostat.name !== null && thermostat.name.trim() !== '') { @@ -177,15 +174,11 @@ beestat.layer.load.prototype.decorate_ = function(parent) { } // Fix some other stuff for non-heat-pump. - if (ecobee_thermostat.settings.hasHeatPump === false) { - beestat.series.auxiliary_heat_1.name = - beestat.series.sum_compressor_heat_1.name; - beestat.series.auxiliary_heat_1.color = - beestat.series.sum_compressor_heat_1.color; - beestat.series.sum_auxiliary_heat_2.name = - beestat.series.compressor_heat_2.name; - beestat.series.sum_auxiliary_heat_2.color = - beestat.series.compressor_heat_2.color; + if (beestat.thermostat.get_system_type(thermostat.thermostat_id, 'heat') !== 'compressor') { + beestat.series.auxiliary_heat_1.name = beestat.series.sum_compressor_heat_1.name; + beestat.series.auxiliary_heat_1.color = beestat.series.sum_compressor_heat_1.color; + beestat.series.sum_auxiliary_heat_2.name = beestat.series.compressor_heat_2.name; + beestat.series.sum_auxiliary_heat_2.color = beestat.series.compressor_heat_2.color; } /*