1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

[udp, syslog] fix clang tidy (#8755)

This commit is contained in:
tomaszduda23
2025-05-12 23:17:28 +02:00
committed by GitHub
parent 58104229e2
commit facf94699e
3 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include "esphome/components/udp/udp_component.h" #include "esphome/components/udp/udp_component.h"
#include "esphome/components/time/real_time_clock.h" #include "esphome/components/time/real_time_clock.h"
#ifdef USE_NETWORK
namespace esphome { namespace esphome {
namespace syslog { namespace syslog {
class Syslog : public Component, public Parented<udp::UDPComponent> { class Syslog : public Component, public Parented<udp::UDPComponent> {
@@ -23,3 +24,4 @@ class Syslog : public Component, public Parented<udp::UDPComponent> {
}; };
} // namespace syslog } // namespace syslog
} // namespace esphome } // namespace esphome
#endif

View File

@@ -1,6 +1,7 @@
#pragma once #pragma once
#include "udp_component.h" #include "udp_component.h"
#ifdef USE_NETWORK
#include "esphome/core/automation.h" #include "esphome/core/automation.h"
#include <vector> #include <vector>
@@ -36,3 +37,4 @@ template<typename... Ts> class UDPWriteAction : public Action<Ts...>, public Par
} // namespace udp } // namespace udp
} // namespace esphome } // namespace esphome
#endif

View File

@@ -1,6 +1,7 @@
#pragma once #pragma once
#include "../udp_component.h" #include "../udp_component.h"
#ifdef USE_NETWORK
#include "esphome/core/component.h" #include "esphome/core/component.h"
#include "esphome/components/packet_transport/packet_transport.h" #include "esphome/components/packet_transport/packet_transport.h"
#include <vector> #include <vector>
@@ -24,3 +25,4 @@ class UDPTransport : public packet_transport::PacketTransport, public Parented<U
} // namespace udp } // namespace udp
} // namespace esphome } // namespace esphome
#endif