From bb1dcca39d8d39e9dae978ecd656900226c45fc8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 6 Jan 2026 17:52:38 -1000 Subject: [PATCH] lower case - clang-tidy --- esphome/core/time.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/core/time.cpp b/esphome/core/time.cpp index 38ef6b62f6..4047033f84 100644 --- a/esphome/core/time.cpp +++ b/esphome/core/time.cpp @@ -25,9 +25,9 @@ size_t ESPTime::strftime_to(std::span buffer, const return len; } // Write "ERROR" to buffer on failure for consistent behavior - constexpr char ERROR_STR[] = "ERROR"; - std::copy_n(ERROR_STR, sizeof(ERROR_STR), buffer.data()); - return sizeof(ERROR_STR) - 1; // Length excluding null terminator + constexpr char error_str[] = "ERROR"; + std::copy_n(error_str, sizeof(error_str), buffer.data()); + return sizeof(error_str) - 1; // Length excluding null terminator } ESPTime ESPTime::from_c_tm(struct tm *c_tm, time_t c_time) {