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 "esphome/components/network/util.h"
|
||||||
#include "udp_component.h"
|
#include "udp_component.h"
|
||||||
|
|
||||||
|
#ifdef USE_NETWORK
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace udp {
|
namespace udp {
|
||||||
|
|
||||||
@@ -614,3 +615,4 @@ void UDPComponent::send_ping_pong_request_() {
|
|||||||
}
|
}
|
||||||
} // namespace udp
|
} // namespace udp
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
#endif
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "esphome/core/component.h"
|
#include "esphome/core/component.h"
|
||||||
|
#ifdef USE_NETWORK
|
||||||
#ifdef USE_SENSOR
|
#ifdef USE_SENSOR
|
||||||
#include "esphome/components/sensor/sensor.h"
|
#include "esphome/components/sensor/sensor.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -156,3 +157,4 @@ class UDPComponent : public PollingComponent {
|
|||||||
|
|
||||||
} // namespace udp
|
} // namespace udp
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user