fix clang-tidy udp

This commit is contained in:
Tomasz Duda 2024-10-14 20:51:34 +02:00
parent 35ee60264e
commit ad2231d12d
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