diff --git a/esphome/components/pid/pid_climate.cpp b/esphome/components/pid/pid_climate.cpp index f7b61067f4..6612acb9f0 100644 --- a/esphome/components/pid/pid_climate.cpp +++ b/esphome/components/pid/pid_climate.cpp @@ -89,7 +89,7 @@ void PIDClimate::dump_config() { this->autotuner_->dump_config(); } } -float PIDClimate::clamp_value_by_mode_(float value) { +float PIDClimate::clamp_value_by_mode_(float value) const { switch (this->mode) { case climate::CLIMATE_MODE_OFF: return 0.0f;