diff --git a/esphome/components/debug/debug_esp32.cpp b/esphome/components/debug/debug_esp32.cpp index f7d012902d..7d37563a2d 100644 --- a/esphome/components/debug/debug_esp32.cpp +++ b/esphome/components/debug/debug_esp32.cpp @@ -2,6 +2,9 @@ #ifdef USE_ESP32 #include "esphome/core/log.h" +#include +#include + #if defined(USE_ESP32_VARIANT_ESP32) #include #elif defined(USE_ESP32_VARIANT_ESP32C3) diff --git a/esphome/components/debug/debug_esp8266.cpp b/esphome/components/debug/debug_esp8266.cpp index 0d0ec15527..3395d9db12 100644 --- a/esphome/components/debug/debug_esp8266.cpp +++ b/esphome/components/debug/debug_esp8266.cpp @@ -76,6 +76,7 @@ void DebugComponent::get_device_info_(std::string &device_info) { void DebugComponent::update_platform_() { #ifdef USE_SENSOR if (this->block_sensor_ != nullptr) { + // NOLINTNEXTLINE(readability-static-accessed-through-instance) this->block_sensor_->publish_state(ESP.getMaxFreeBlockSize()); } #if USE_ARDUINO_VERSION_CODE >= VERSION_CODE(2, 5, 2)