mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Fixed #349 - Time to heat can report times in the past
Had some bad logic.
This commit is contained in:
parent
ed563cf7f9
commit
8c507918b6
@ -373,8 +373,17 @@ beestat.component.card.system.prototype.decorate_time_to_temperature_ = function
|
|||||||
}) +
|
}) +
|
||||||
' / h)';
|
' / h)';
|
||||||
|
|
||||||
if (Math.abs(degrees_per_hour) < 0.05) {
|
if (
|
||||||
// If the degrees would display as 0.0/h, go for "never" as the time.
|
(
|
||||||
|
simplified_operating_mode === 'heat' &&
|
||||||
|
degrees_per_hour < 0.05
|
||||||
|
) ||
|
||||||
|
(
|
||||||
|
simplified_operating_mode === 'cool' &&
|
||||||
|
degrees_per_hour > -0.05
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
// If the degrees would display as 0.0/h, go for "Never" as the time.
|
||||||
text = 'Never';
|
text = 'Never';
|
||||||
} else {
|
} else {
|
||||||
let degrees_to_go;
|
let degrees_to_go;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user