From ed3811dd9dbd7ef946d761f46986d5b5b1a67703 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 4 Mar 2021 07:08:07 -0500 Subject: [PATCH] Fixed TTT breaking if there is no profile available yet --- js/component/card/system.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/component/card/system.js b/js/component/card/system.js index 542e774..23fc714 100644 --- a/js/component/card/system.js +++ b/js/component/card/system.js @@ -348,7 +348,10 @@ beestat.component.card.system.prototype.decorate_time_to_temperature_ = function let header_text = 'Time to ' + simplified_operating_mode; let text; - if (thermostat.profile.temperature[operating_mode] === null) { + if ( + thermostat.profile === null || + thermostat.profile.temperature[operating_mode] === null + ) { // If there is no profile data; TTT is unknown. text = 'Unknown'; } else {