From 0f22b23d9a70ae7f786fbe06717989515f30cbf2 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 15 Dec 2025 17:10:12 +0900 Subject: [PATCH] clang-tidy CI fix ...but this is weird. Why are we copying into a local buffer at all instead of just using the original string? --- esphome/components/version/version_text_sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/version/version_text_sensor.cpp b/esphome/components/version/version_text_sensor.cpp index 7cec62a10af..88774b4b3ad 100644 --- a/esphome/components/version/version_text_sensor.cpp +++ b/esphome/components/version/version_text_sensor.cpp @@ -13,7 +13,7 @@ void VersionTextSensor::setup() { if (this->hide_timestamp_) { this->publish_state(ESPHOME_VERSION); } else { - char build_time_str[App.BUILD_TIME_STR_SIZE]; + char build_time_str[esphome::Application::BUILD_TIME_STR_SIZE]; App.get_build_time_string(build_time_str); this->publish_state(str_sprintf(ESPHOME_VERSION " %s", build_time_str)); }