Fix new component names on climate page
This commit is contained in:
@@ -2490,22 +2490,22 @@ script:
|
||||
disp1->set_component_value("hvac_modes", supported_hvac_modes);
|
||||
if (supported_hvac_modes & 1) { // Heat
|
||||
if (target_temp_high <= -999 and target_temp > -999) target_temp_high = target_temp;
|
||||
disp1->set_component_text_printf("target_temp_high", "%.1f°", target_temp_high);
|
||||
disp1->show_component("target_temp_high");
|
||||
disp1->set_component_text_printf("target_high", "%.1f°", target_temp_high);
|
||||
disp1->show_component("target_high");
|
||||
disp1->set_component_value("slider_high", round(((10*target_temp_high) - temp_offset) / temp_step));
|
||||
disp1->show_component("slider_high");
|
||||
} else {
|
||||
disp1->hide_component("target_temp_high");
|
||||
disp1->hide_component("target_high");
|
||||
disp1->hide_component("slider_high");
|
||||
}
|
||||
if (supported_hvac_modes & 2) { // Cool
|
||||
if (target_temp_low <= -999 and target_temp > -999) target_temp_low = target_temp;
|
||||
disp1->set_component_text_printf("target_temp_low", "%.1f°", target_temp_low);
|
||||
disp1->show_component("target_temp_low");
|
||||
disp1->set_component_text_printf("target_low", "%.1f°", target_temp_low);
|
||||
disp1->show_component("target_low");
|
||||
disp1->set_component_value("slider_low", round(((10*target_temp_low) - temp_offset) / temp_step));
|
||||
disp1->show_component("slider_low");
|
||||
} else {
|
||||
disp1->hide_component("target_temp_low");
|
||||
disp1->hide_component("target_low");
|
||||
disp1->hide_component("slider_low");
|
||||
}
|
||||
if (supported_hvac_modes > 0) {
|
||||
|
||||
Reference in New Issue
Block a user