From 73944d4077886bde010641665edd33599d0f6aaa Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 22 Oct 2025 09:48:39 -1000 Subject: [PATCH] reduce --- esphome/components/climate/climate_traits.h | 22 +++++++++------------ 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/esphome/components/climate/climate_traits.h b/esphome/components/climate/climate_traits.h index d0855d58b1..42affba3e9 100644 --- a/esphome/components/climate/climate_traits.h +++ b/esphome/components/climate/climate_traits.h @@ -5,7 +5,15 @@ #include "esphome/core/finite_set_mask.h" #include "esphome/core/helpers.h" -namespace esphome::climate { +namespace esphome { + +#ifdef USE_API +namespace api { +class APIConnection; +} // namespace api +#endif + +namespace climate { // Bitmask sizes for climate enums constexpr int CLIMATE_MODE_BITMASK_SIZE = 8; // 7 values (OFF, HEAT_COOL, COOL, HEAT, FAN_ONLY, DRY, AUTO) @@ -34,18 +42,6 @@ template inline bool vector_contains(const std::vector &vec, cons return false; } -} // namespace esphome::climate - -namespace esphome { - -#ifdef USE_API -namespace api { -class APIConnection; -} // namespace api -#endif - -namespace climate { - /** This class contains all static data for climate devices. * * All climate devices must support these features: