mirror of
https://github.com/esphome/esphome.git
synced 2026-06-01 01:19:45 +08:00
[version] Remove duplicate build_info_data.h include (#15288)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user