1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed TTT breaking if there is no profile available yet

This commit is contained in:
Jon Ziebell 2021-03-04 07:08:07 -05:00
parent 55adb8182f
commit ed3811dd9d

View File

@ -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 {