mirror of
https://github.com/beestat/app.git
synced 2025-06-05 06:37:24 -04:00
Removed leading hours in TTT if it's 0
This commit is contained in:
parent
4bdb0d5c22
commit
0bed3a39c5
@ -360,12 +360,14 @@ beestat.component.card.system.prototype.decorate_time_to_temperature_ = function
|
|||||||
case 'heat':
|
case 'heat':
|
||||||
degrees_to_go = thermostat.setpoint_heat - indoor_temperature;
|
degrees_to_go = thermostat.setpoint_heat - indoor_temperature;
|
||||||
hours_to_go = degrees_to_go / degrees_per_hour;
|
hours_to_go = degrees_to_go / degrees_per_hour;
|
||||||
text = beestat.time(hours_to_go * 60 * 60);
|
text = beestat.time(hours_to_go * 60 * 60)
|
||||||
|
.replace(/^0h /, '');
|
||||||
break;
|
break;
|
||||||
case 'cool':
|
case 'cool':
|
||||||
degrees_to_go = indoor_temperature - thermostat.setpoint_cool;
|
degrees_to_go = indoor_temperature - thermostat.setpoint_cool;
|
||||||
hours_to_go = degrees_to_go / degrees_per_hour;
|
hours_to_go = degrees_to_go / degrees_per_hour;
|
||||||
text = beestat.time(hours_to_go * 60 * 60);
|
text = beestat.time(hours_to_go * 60 * 60)
|
||||||
|
.replace(/^0h /, '');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user