From 013d8324752865903ade68c4455e41c4e8b0cef2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 26 Mar 2026 12:42:15 -1000 Subject: [PATCH] Fix clang-tidy: rename static constant empty to EMPTY --- esphome/components/climate/climate_traits.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/climate/climate_traits.h b/esphome/components/climate/climate_traits.h index c0e844126f..1b80846729 100644 --- a/esphome/components/climate/climate_traits.h +++ b/esphome/components/climate/climate_traits.h @@ -157,8 +157,8 @@ class ClimateTraits { } const std::vector &get_supported_custom_fan_modes() const { - static const std::vector empty; - return this->supported_custom_fan_modes_ ? *this->supported_custom_fan_modes_ : empty; + static const std::vector EMPTY; + return this->supported_custom_fan_modes_ ? *this->supported_custom_fan_modes_ : EMPTY; } bool supports_custom_fan_mode(const char *custom_fan_mode) const { return this->supported_custom_fan_modes_ && vector_contains(*this->supported_custom_fan_modes_, custom_fan_mode); @@ -178,8 +178,8 @@ class ClimateTraits { } const std::vector &get_supported_custom_presets() const { - static const std::vector empty; - return this->supported_custom_presets_ ? *this->supported_custom_presets_ : empty; + static const std::vector EMPTY; + return this->supported_custom_presets_ ? *this->supported_custom_presets_ : EMPTY; } bool supports_custom_preset(const char *custom_preset) const { return this->supported_custom_presets_ && vector_contains(*this->supported_custom_presets_, custom_preset);