Do not show climate page when using internal temperature sensor
Solves #2021
This commit is contained in:
@@ -939,10 +939,12 @@ display:
|
|||||||
case 4: // indr_temp
|
case 4: // indr_temp
|
||||||
case 27: // indr_temp_icon
|
case 27: // indr_temp_icon
|
||||||
if (!touch_event) { // Release
|
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" : "");
|
detailed_entity->publish_state((id(is_embedded_thermostat)) ? "embedded_climate" : "");
|
||||||
disp1->set_component_value("climate.embedded", id(is_embedded_thermostat) ? 1 : 0);
|
disp1->set_component_value("climate.embedded", id(is_embedded_thermostat) ? 1 : 0);
|
||||||
goto_page->execute("climate");
|
goto_page->execute("climate");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user