mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
23 lines
427 B
C++
23 lines
427 B
C++
#include "climate_mode.h"
|
|
|
|
namespace esphome {
|
|
namespace climate {
|
|
|
|
const char *climate_mode_to_string(ClimateMode mode) {
|
|
switch (mode) {
|
|
case CLIMATE_MODE_OFF:
|
|
return "OFF";
|
|
case CLIMATE_MODE_AUTO:
|
|
return "AUTO";
|
|
case CLIMATE_MODE_COOL:
|
|
return "COOL";
|
|
case CLIMATE_MODE_HEAT:
|
|
return "HEAT";
|
|
default:
|
|
return "UNKNOWN";
|
|
}
|
|
}
|
|
|
|
} // namespace climate
|
|
} // namespace esphome
|