mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[udp, syslog] fix clang tidy (#8755)
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user