From da6af184a69d46fe35dce97216b3fffded856e3f Mon Sep 17 00:00:00 2001 From: Keith Burzinski Date: Tue, 10 Jun 2025 19:32:51 -0500 Subject: [PATCH] Use a `define` for log message constants (#8952) --- esphome/core/log_const_en.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/esphome/core/log_const_en.h b/esphome/core/log_const_en.h index 75e71ecd81..ccb1f446e4 100644 --- a/esphome/core/log_const_en.h +++ b/esphome/core/log_const_en.h @@ -1,11 +1,4 @@ #pragma once -#include "defines.h" - -#ifdef USE_ESP8266 #define ESP_LOG_MSG_COMM_FAIL "Communication failed" #define ESP_LOG_MSG_COMM_FAIL_FOR "Communication failed for '%s'" -#else -constexpr const char *const ESP_LOG_MSG_COMM_FAIL = "Communication failed"; -constexpr const char *const ESP_LOG_MSG_COMM_FAIL_FOR = "Communication failed for '%s'"; -#endif