mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
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?
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user