From 1c6575a2640b2a57908d2a969735649dd69e3885 Mon Sep 17 00:00:00 2001 From: Itay Shoshani <5647956+itay-sho@users.noreply.github.com> Date: Sat, 26 Oct 2024 09:46:26 +0300 Subject: [PATCH] feat: support esp-idf --- components/aux_ac/aux_ac.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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