Skip to content

Commit

Permalink
Allow set climate preset to NONE (#5588)
Browse files Browse the repository at this point in the history
  • Loading branch information
dentra committed Oct 23, 2023
1 parent 84c00a5 commit b898f75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/climate/climate.cpp
Expand Up @@ -213,6 +213,8 @@ ClimateCall &ClimateCall::set_preset(const std::string &preset) {
this->set_preset(CLIMATE_PRESET_SLEEP);
} else if (str_equals_case_insensitive(preset, "ACTIVITY")) {
this->set_preset(CLIMATE_PRESET_ACTIVITY);
} else if (str_equals_case_insensitive(preset, "NONE")) {
this->set_preset(CLIMATE_PRESET_NONE);
} else {
if (this->parent_->get_traits().supports_custom_preset(preset)) {
this->custom_preset_ = preset;
Expand Down

0 comments on commit b898f75

Please sign in to comment.