From 8429684fce4aa31ef1d199fea9610c46102da380 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 16 Dec 2025 19:46:04 +0000 Subject: [PATCH] Fix clang-format: use uppercase PREFIX constant name --- esphome/components/version/version_text_sensor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/version/version_text_sensor.cpp b/esphome/components/version/version_text_sensor.cpp index 67611e55a5..33ff35f001 100644 --- a/esphome/components/version/version_text_sensor.cpp +++ b/esphome/components/version/version_text_sensor.cpp @@ -10,13 +10,13 @@ namespace version { static const char *const TAG = "version.text_sensor"; void VersionTextSensor::setup() { - static const char prefix[] PROGMEM = ESPHOME_VERSION " (config hash 0x"; + static const char PREFIX[] PROGMEM = ESPHOME_VERSION " (config hash 0x"; char version_str[128]; #ifdef USE_ESP8266 - strcpy_P(version_str, prefix); + strcpy_P(version_str, PREFIX); #else - strcpy(version_str, prefix); + strcpy(version_str, PREFIX); #endif char hash_str[9];