mirror of
https://github.com/beestat/app.git
synced 2025-06-03 13:46:54 -04:00
Fixed TTT box showing up when not needed
This commit is contained in:
parent
0bed3a39c5
commit
62a4d3852e
@ -311,14 +311,6 @@ beestat.component.card.system.prototype.decorate_climate_ = function(parent) {
|
|||||||
beestat.component.card.system.prototype.decorate_time_to_temperature_ = function(parent) {
|
beestat.component.card.system.prototype.decorate_time_to_temperature_ = function(parent) {
|
||||||
const thermostat = beestat.cache.thermostat[this.thermostat_id_];
|
const thermostat = beestat.cache.thermostat[this.thermostat_id_];
|
||||||
|
|
||||||
const container = $.createElement('div').style({
|
|
||||||
'background': beestat.style.color.bluegray.dark,
|
|
||||||
'padding': beestat.style.size.gutter / 2,
|
|
||||||
'text-align': 'center',
|
|
||||||
'margin-top': beestat.style.size.gutter
|
|
||||||
});
|
|
||||||
parent.appendChild(container);
|
|
||||||
|
|
||||||
const operating_mode = beestat.thermostat.get_operating_mode(
|
const operating_mode = beestat.thermostat.get_operating_mode(
|
||||||
thermostat.thermostat_id
|
thermostat.thermostat_id
|
||||||
);
|
);
|
||||||
@ -328,6 +320,14 @@ beestat.component.card.system.prototype.decorate_time_to_temperature_ = function
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const container = $.createElement('div').style({
|
||||||
|
'background': beestat.style.color.bluegray.dark,
|
||||||
|
'padding': beestat.style.size.gutter / 2,
|
||||||
|
'text-align': 'center',
|
||||||
|
'margin-top': beestat.style.size.gutter
|
||||||
|
});
|
||||||
|
parent.appendChild(container);
|
||||||
|
|
||||||
// Convert "heat_1" etc to "heat"
|
// Convert "heat_1" etc to "heat"
|
||||||
const simplified_operating_mode = operating_mode.replace(/_\d/, '');
|
const simplified_operating_mode = operating_mode.replace(/_\d/, '');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user