mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 00:58:40 +00:00
Postpone breaking changes for another PR
I think we need to put a little more thought into whether we really want the build time in each of these, or whether it should be just the config_hash (perhaps extended with version, and in some cases the component's own serial number or other identifier). So put the old compilation_time_ and its access methods back, so this PR only adds the *new* fields. We can migrate users over and then remove the compilation_time_ separately.
This commit is contained in:
@@ -1472,10 +1472,7 @@ bool APIConnection::send_device_info_response(const DeviceInfoRequest &msg) {
|
||||
|
||||
resp.set_esphome_version(ESPHOME_VERSION_REF);
|
||||
|
||||
// Stack buffer for build time string
|
||||
char build_time_str[Application::BUILD_TIME_STR_SIZE];
|
||||
App.get_build_time_string(build_time_str);
|
||||
resp.set_compilation_time(StringRef(build_time_str));
|
||||
resp.set_compilation_time(App.get_compilation_time_ref());
|
||||
|
||||
// Manufacturer string - define once, handle ESP8266 PROGMEM separately
|
||||
#if defined(USE_ESP8266) || defined(USE_ESP32)
|
||||
|
||||
Reference in New Issue
Block a user