From 1f6007712e4c6fdfc7f904a96819bb72727de92e Mon Sep 17 00:00:00 2001 From: Anton Sergunov Date: Wed, 13 Nov 2024 14:14:19 +0000 Subject: [PATCH] Add missing const --- esphome/components/pid/pid_climate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;