diff --git a/esphome/components/libretiny/helpers.cpp b/esphome/components/libretiny/helpers.cpp index 6eed3b3bd6..b6451860d5 100644 --- a/esphome/components/libretiny/helpers.cpp +++ b/esphome/components/libretiny/helpers.cpp @@ -2,6 +2,8 @@ #ifdef USE_LIBRETINY +#include "esphome/core/hal.h" + #include // for macAddress() namespace esphome { diff --git a/esphome/components/rp2040/helpers.cpp b/esphome/components/rp2040/helpers.cpp index 7a15b827f1..a6eac58dc6 100644 --- a/esphome/components/rp2040/helpers.cpp +++ b/esphome/components/rp2040/helpers.cpp @@ -3,6 +3,8 @@ #ifdef USE_RP2040 +#include "esphome/core/hal.h" + #if defined(USE_WIFI) #include #endif