From a85b1a3187203d4eb678e33935f1aa78e50478a0 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 16 Jan 2020 18:54:40 -0500 Subject: [PATCH] Decreased smoothing on Thermostat Runtime Detail --- js/component/card/runtime_thermostat_detail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/component/card/runtime_thermostat_detail.js b/js/component/card/runtime_thermostat_detail.js index c141514..25dfe24 100644 --- a/js/component/card/runtime_thermostat_detail.js +++ b/js/component/card/runtime_thermostat_detail.js @@ -396,7 +396,7 @@ beestat.component.card.runtime_thermostat_detail.prototype.get_data_ = function( var moving = []; var moving_count; if (beestat.setting('runtime_thermostat_detail_smoothing') === true) { - moving_count = 15; + moving_count = 10; } else { moving_count = 1; } @@ -786,6 +786,7 @@ beestat.component.card.runtime_thermostat_detail.prototype.get_average_ = functi count++; } } + return average / count; };