diff --git a/esphome/components/logger/logger.cpp b/esphome/components/logger/logger.cpp index 322d153767..1af2791644 100644 --- a/esphome/components/logger/logger.cpp +++ b/esphome/components/logger/logger.cpp @@ -266,7 +266,8 @@ static const LogString *const LOG_LEVELS[] = { reinterpret_cast(LOG_LEVEL_VERBOSE), reinterpret_cast(LOG_LEVEL_VERY_VERBOSE), }; #else -static const char *const LOG_LEVELS[] = {"NONE", "ERROR", "WARN", "INFO", "CONFIG", "DEBUG", "VERBOSE", "VERY_VERBOSE"}; +static const LogString *const LOG_LEVELS[] = {"NONE", "ERROR", "WARN", "INFO", + "CONFIG", "DEBUG", "VERBOSE", "VERY_VERBOSE"}; #endif void Logger::dump_config() {