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:
parent
55adb8182f
commit
ed3811dd9d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user