diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index c7afd72bf3..85f4566f3c 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -1473,7 +1473,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[App.BUILD_TIME_STR_SIZE]; + 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)); diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index 9eaa5fcfb5..4f68a33461 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -24,7 +24,6 @@ #include "lwip/dns.h" #include "lwip/err.h" -#include "esphome/core/application.h" #include "esphome/core/hal.h" #include "esphome/core/helpers.h" #include "esphome/core/log.h"