mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 16:25:50 +00:00
fix clang-tidy udp
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user