Do not show climate page when using internal temperature sensor

Solves #2021
This commit is contained in:
Edward Firmo
2024-04-09 10:10:35 +02:00
parent 376d91aa5a
commit c64132d7b5

View File

@@ -939,10 +939,12 @@ display:
case 4: // indr_temp
case 27: // indr_temp_icon
if (!touch_event) { // Release
if (!id(embedded_indoor_temp) and !id(is_embedded_thermostat)) { // To do v4.4: Expand to not show when sensor is not climate
detailed_entity->publish_state((id(is_embedded_thermostat)) ? "embedded_climate" : "");
disp1->set_component_value("climate.embedded", id(is_embedded_thermostat) ? 1 : 0);
goto_page->execute("climate");
}
}
break;
}
break;