From e5147c316a2e01398b30ed91504b12c08397e4a4 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 20 Jul 2022 21:16:28 -0400 Subject: [PATCH] Fixed #358 - Not all history is shown on Thermostat Summary Attempt 2 --- js/component/card/runtime_thermostat_summary.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/component/card/runtime_thermostat_summary.js b/js/component/card/runtime_thermostat_summary.js index fd670b8..fe4c6c6 100755 --- a/js/component/card/runtime_thermostat_summary.js +++ b/js/component/card/runtime_thermostat_summary.js @@ -181,10 +181,7 @@ 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.min( - moment(beestat.cache.thermostat[this.thermostat_id_].data_begin), - moment(beestat.cache.thermostat[this.thermostat_id_].first_connected) - ); + begin_m = moment(beestat.cache.thermostat[this.thermostat_id_].sync_begin); } else { var time_periods = [ 'day',