From 32dd941b221cc4b093c8c35c8448c032b90b5b23 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 11 Feb 2020 20:43:20 -0500 Subject: [PATCH] Fixed #237 - Thermostat Summary missing Outdoor Temp --- js/component/card/runtime_thermostat_summary.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/component/card/runtime_thermostat_summary.js b/js/component/card/runtime_thermostat_summary.js index 586ad1f..fe8b388 100755 --- a/js/component/card/runtime_thermostat_summary.js +++ b/js/component/card/runtime_thermostat_summary.js @@ -235,7 +235,7 @@ beestat.component.card.runtime_thermostat_summary.prototype.get_data_ = function data.series.extreme_outdoor_temperature.push(null); } } else { - var value = bucket !== undefined ? bucket[key] : null; + var value = (bucket !== undefined) ? bucket[key] : null; /* * If Gap-fill is on, and it's a Gap-fillable value, and it's not the @@ -256,7 +256,8 @@ beestat.component.card.runtime_thermostat_summary.prototype.get_data_ = function data.series[key].push(value); - data.metadata.series[key].active = data.metadata.series[key].active || (value > 0); + var this_active = key.includes('temperature') ? true : (value > 0); + data.metadata.series[key].active = data.metadata.series[key].active || this_active; } } }