From 4e8506b9cc9d09703379e91a392db308b93e3dec Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Fri, 5 Feb 2021 06:52:32 -0500 Subject: [PATCH] Rollback of 71dad59 due to bug Will investigate more and fix later. --- js/layer/load.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/layer/load.js b/js/layer/load.js index db13632..1bf5fe1 100644 --- a/js/layer/load.js +++ b/js/layer/load.js @@ -155,6 +155,10 @@ beestat.layer.load.prototype.decorate_ = function(parent) { 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() !== '') { document.title = 'beestat | ' + thermostat.name; @@ -174,7 +178,8 @@ beestat.layer.load.prototype.decorate_ = function(parent) { } // Fix some other stuff for non-heat-pump. - if (beestat.thermostat.get_system_type(thermostat.thermostat_id, 'heat') !== 'compressor') { + if (ecobee_thermostat.settings.hasHeatPump === false) { + // 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;