1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 13:43:54 +00:00
This commit is contained in:
J. Nick Koston
2025-10-22 09:48:39 -10:00
parent 56d084bcff
commit 73944d4077

View File

@@ -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<typename T> inline bool vector_contains(const std::vector<T> &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: