From c81ae3d8d88f8846c6084a5c5128140d16cf7ad5 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 13 Dec 2023 23:06:52 -0500 Subject: [PATCH] Added last sync timestamp for supporters --- js/beestat/ecobee.js | 3 +++ js/component/card/system.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/js/beestat/ecobee.js b/js/beestat/ecobee.js index dadeb91..e214b8c 100644 --- a/js/beestat/ecobee.js +++ b/js/beestat/ecobee.js @@ -4,6 +4,9 @@ beestat.ecobee = {}; * Check to see if ecobee is down. If so, render the footer component. */ beestat.ecobee.notify_if_down = function() { + // Turning this off to review and/or deprecate. + return; + if ( beestat.cache !== undefined && beestat.cache.thermostat !== undefined && diff --git a/js/component/card/system.js b/js/component/card/system.js index ed88418..9fa0e7f 100644 --- a/js/component/card/system.js +++ b/js/component/card/system.js @@ -548,5 +548,10 @@ beestat.component.card.system.prototype.get_subtitle_ = function() { subtitle += ' / ' + cool; } + if (beestat.user.has_early_access() === true) { + subtitle += ' @ ' + moment.utc(ecobee_thermostat.runtime.lastStatusModified).local() + .format('h:mm a'); + } + return subtitle; };