diff --git a/esphome/components/udp/udp_component.h b/esphome/components/udp/udp_component.h index bbe46a562f..da939af817 100644 --- a/esphome/components/udp/udp_component.h +++ b/esphome/components/udp/udp_component.h @@ -1,6 +1,7 @@ #pragma once #include "esphome/core/component.h" +#include "esphome/core/defines.h" #ifdef USE_NETWORK #ifdef USE_SENSOR #include "esphome/components/sensor/sensor.h"