Fix new component names on climate page

This commit is contained in:
Edward Firmo
2024-01-02 14:37:05 +01:00
parent e45d07cfd7
commit e98e2612bf
2 changed files with 9 additions and 9 deletions

View File

@@ -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) {