1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-17 10:42:21 +01:00

[api] Optimize HelloResponse server_info to reduce memory usage

This commit is contained in:
J. Nick Koston
2025-09-13 17:16:09 -05:00
parent 1ea97e9caf
commit 51c943d21e

View File

@@ -1427,7 +1427,6 @@ bool APIConnection::send_device_info_response(const DeviceInfoRequest &msg) {
std::string mac_address = get_mac_address_pretty(); std::string mac_address = get_mac_address_pretty();
resp.set_mac_address(StringRef(mac_address)); resp.set_mac_address(StringRef(mac_address));
// Use the ESPHOME_VERSION_REF constant defined in send_hello_response
resp.set_esphome_version(ESPHOME_VERSION_REF); resp.set_esphome_version(ESPHOME_VERSION_REF);
resp.set_compilation_time(App.get_compilation_time_ref()); resp.set_compilation_time(App.get_compilation_time_ref());