diff --git a/components/aux_ac/aux_ac.h b/components/aux_ac/aux_ac.h index 68d0912..27f3cc4 100644 --- a/components/aux_ac/aux_ac.h +++ b/components/aux_ac/aux_ac.h @@ -4,8 +4,10 @@ /// немного переработанная версия старого компонента #pragma once -#include #include +#ifndef F +#define F(string_literal) (string_literal) +#endif #include "esphome.h" #include "esphome/components/binary_sensor/binary_sensor.h" @@ -16,6 +18,8 @@ #include "esphome/core/component.h" #include "esphome/core/helpers.h" +using String = std::string; + // весь функционал сохранения пресетов прячу под дефайн // #define PRESETS_SAVING #ifdef PRESETS_SAVING