From 3ca873450d9c3e445b42533ede61ca8b7db61b4a Mon Sep 17 00:00:00 2001 From: GrKoR Date: Sat, 26 Oct 2024 20:46:01 +0300 Subject: [PATCH] fix: String class was changed to std::string as part of esp-idf support --- components/aux_ac/aux_ac.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/aux_ac/aux_ac.h b/components/aux_ac/aux_ac.h index 3bc30cd..6767852 100644 --- a/components/aux_ac/aux_ac.h +++ b/components/aux_ac/aux_ac.h @@ -19,8 +19,6 @@ #include "esphome/core/component.h" #include "esphome/core/helpers.h" -using String = std::string; - // весь функционал сохранения пресетов прячу под дефайн // #define PRESETS_SAVING #ifdef PRESETS_SAVING @@ -1669,7 +1667,7 @@ namespace esphome * msg - сообщение, выводимое в лог * line - строка, на которой произошел вызов (удобно при отладке) */ - void _debugMsg(const String &msg, uint8_t dbgLevel = ESPHOME_LOG_LEVEL_DEBUG, unsigned int line = 0, ...) + void _debugMsg(const std::string &msg, uint8_t dbgLevel = ESPHOME_LOG_LEVEL_DEBUG, unsigned int line = 0, ...) { if (dbgLevel < ESPHOME_LOG_LEVEL_NONE) dbgLevel = ESPHOME_LOG_LEVEL_NONE; @@ -1710,7 +1708,7 @@ namespace esphome if ((!notAPacket) && (!HOLMES_WORKS)) return; - String st = ""; + std::string st = ""; char textBuf[11]; // заполняем время получения пакета