[version] Remove duplicate build_info_data.h include (#15288)

This commit is contained in:
J. Nick Koston
2026-03-29 11:55:39 -10:00
committed by GitHub
parent 8a802ca666
commit 1f3fd60d29
@@ -1,6 +1,5 @@
#include "version_text_sensor.h"
#include "esphome/core/application.h"
#include "esphome/core/build_info_data.h"
#include "esphome/core/helpers.h"
#include "esphome/core/log.h"
#include "esphome/core/progmem.h"
@@ -36,7 +35,9 @@ void VersionTextSensor::setup() {
if (!this->hide_timestamp_) {
size_t len = strlen(version_str);
ESPHOME_strncat_P(version_str, BUILT_STR, sizeof(version_str) - len - 1);
ESPHOME_strncat_P(version_str, ESPHOME_BUILD_TIME_STR, sizeof(version_str) - strlen(version_str) - 1);
char build_time_buf[Application::BUILD_TIME_STR_SIZE];
App.get_build_time_string(build_time_buf);
strncat(version_str, build_time_buf, sizeof(version_str) - strlen(version_str) - 1);
}
// The closing parenthesis is part of the config-hash suffix and must