From 19a500204ba8ec8f28a02ba7edc4d63beadc7547 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 29 Jun 2022 09:00:52 -0400 Subject: [PATCH] Fixed #358 - Not all history is shown on Thermostat Summary --- 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 1c4d7b7..fd670b8 100755 --- a/js/component/card/runtime_thermostat_summary.js +++ b/js/component/card/runtime_thermostat_summary.js @@ -181,8 +181,9 @@ beestat.component.card.runtime_thermostat_summary.prototype.get_data_ = function var begin_m; if (beestat.setting('runtime_thermostat_summary_time_period') === 'all') { - begin_m = moment( - beestat.cache.thermostat[this.thermostat_id_].data_begin + begin_m = moment.min( + moment(beestat.cache.thermostat[this.thermostat_id_].data_begin), + moment(beestat.cache.thermostat[this.thermostat_id_].first_connected) ); } else { var time_periods = [