From 863dc62daee2a127d5f29418593c512f39dec0b0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 26 Mar 2026 15:48:50 -1000 Subject: [PATCH] Fix clang-tidy: protected methods need trailing underscore --- esphome/components/climate/climate.cpp | 4 ++-- esphome/components/climate/climate_traits.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/climate/climate.cpp b/esphome/components/climate/climate.cpp index 7e3df90889..e132497140 100644 --- a/esphome/components/climate/climate.cpp +++ b/esphome/components/climate/climate.cpp @@ -486,9 +486,9 @@ ClimateTraits Climate::get_traits() { auto traits = this->traits(); // Wire custom mode pointers from Climate-owned storage if (this->supported_custom_fan_modes_) - traits.set_supported_custom_fan_modes(this->supported_custom_fan_modes_); + traits.set_supported_custom_fan_modes_(this->supported_custom_fan_modes_); if (this->supported_custom_presets_) - traits.set_supported_custom_presets(this->supported_custom_presets_); + traits.set_supported_custom_presets_(this->supported_custom_presets_); #ifdef USE_CLIMATE_VISUAL_OVERRIDES if (!std::isnan(this->visual_min_temperature_override_)) { traits.set_visual_min_temperature(this->visual_min_temperature_override_); diff --git a/esphome/components/climate/climate_traits.h b/esphome/components/climate/climate_traits.h index c0bc78f8db..d31de34e24 100644 --- a/esphome/components/climate/climate_traits.h +++ b/esphome/components/climate/climate_traits.h @@ -281,10 +281,10 @@ class ClimateTraits { } /// Set custom mode pointers (only Climate::get_traits() should call these). - void set_supported_custom_fan_modes(const std::vector *modes) { + void set_supported_custom_fan_modes_(const std::vector *modes) { this->supported_custom_fan_modes_ = modes; } - void set_supported_custom_presets(const std::vector *presets) { + void set_supported_custom_presets_(const std::vector *presets) { this->supported_custom_presets_ = presets; }