[code-quality] udp component

This commit is contained in:
Tomasz Duda 2024-10-14 21:01:07 +02:00
parent 2cca26ada4
commit 350a54fbb3
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
#include "esphome/components/network/util.h"
#include "udp_component.h"
#ifdef USE_NETWORK
namespace esphome {
namespace udp {
@ -614,3 +615,4 @@ void UDPComponent::send_ping_pong_request_() {
}
} // namespace udp
} // namespace esphome
#endif

View file

@ -1,6 +1,7 @@
#pragma once
#include "esphome/core/component.h"
#ifdef USE_NETWORK
#ifdef USE_SENSOR
#include "esphome/components/sensor/sensor.h"
#endif
@ -156,3 +157,4 @@ class UDPComponent : public PollingComponent {
} // namespace udp
} // namespace esphome
#endif