Fix clang-tidy: protected methods need trailing underscore

This commit is contained in:
J. Nick Koston
2026-03-26 15:48:50 -10:00
parent 7591f1d473
commit 863dc62dae
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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_);
+2 -2
View File
@@ -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<const char *> *modes) {
void set_supported_custom_fan_modes_(const std::vector<const char *> *modes) {
this->supported_custom_fan_modes_ = modes;
}
void set_supported_custom_presets(const std::vector<const char *> *presets) {
void set_supported_custom_presets_(const std::vector<const char *> *presets) {
this->supported_custom_presets_ = presets;
}