Fixes new auto mode COOL and HEAT after #1994 (#2053)

This commit is contained in:
carstenschroeder 2021-07-22 14:39:57 +02:00 committed by Jesse Hills
parent 1efabd27d8
commit fda8dd4ce3
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -35,8 +35,8 @@ void PIDClimate::control(const climate::ClimateCall &call) {
if (call.get_target_temperature().has_value()) if (call.get_target_temperature().has_value())
this->target_temperature = *call.get_target_temperature(); this->target_temperature = *call.get_target_temperature();
// If switching to non-auto mode, set output immediately // If switching to off mode, set output immediately
if (this->mode != climate::CLIMATE_MODE_HEAT_COOL) if (this->mode == climate::CLIMATE_MODE_OFF)
this->handle_non_auto_mode_(); this->handle_non_auto_mode_();
this->publish_state(); this->publish_state();