diff --git a/esphome/core/application.h b/esphome/core/application.h index c34be967f1..9892e27022 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -36,6 +36,9 @@ #include "esphome/components/socket/socket.h" #endif #endif // USE_SOCKET_SELECT_SUPPORT +#if defined(USE_ESP8266) && defined(USE_SOCKET_IMPL_LWIP_TCP) +#include "esphome/components/socket/socket.h" +#endif #ifdef USE_BINARY_SENSOR #include "esphome/components/binary_sensor/binary_sensor.h"