mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 21:53:48 +00:00
fix compile
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
#include "esphome/core/enum_bitmask.h"
|
||||
#include "climate_mode.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace climate {
|
||||
namespace esphome::climate {
|
||||
|
||||
// Type aliases for climate enum bitmasks
|
||||
// These replace std::set<EnumType> to eliminate red-black tree overhead
|
||||
@@ -21,8 +20,7 @@ using ClimateFanModeMask = EnumBitmask<ClimateFanMode, CLIMATE_FAN_MODE_BITMASK_
|
||||
using ClimateSwingModeMask = EnumBitmask<ClimateSwingMode, CLIMATE_SWING_MODE_BITMASK_SIZE>;
|
||||
using ClimatePresetMask = EnumBitmask<ClimatePreset, CLIMATE_PRESET_BITMASK_SIZE>;
|
||||
|
||||
} // namespace climate
|
||||
} // namespace esphome
|
||||
} // namespace esphome::climate
|
||||
|
||||
// Template specializations for enum-to-bit conversions
|
||||
// All climate enums are sequential starting from 0, so conversions are trivial
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
#include "climate_mode_bitmask.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace climate {
|
||||
namespace esphome::climate {
|
||||
|
||||
// Lightweight linear search for small vectors (1-20 items)
|
||||
// Avoids std::find template overhead
|
||||
@@ -18,8 +17,7 @@ template<typename T> inline bool vector_contains(const std::vector<T> &vec, cons
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace climate
|
||||
} // namespace esphome
|
||||
} // namespace esphome::climate
|
||||
|
||||
namespace esphome {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user