mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[code-quality] statsd component (#7603)
Co-authored-by: Tomasz Duda <tomaszduda23@gmai.com>
This commit is contained in:
		| @@ -2,6 +2,7 @@ | |||||||
|  |  | ||||||
| #include "statsd.h" | #include "statsd.h" | ||||||
|  |  | ||||||
|  | #ifdef USE_NETWORK | ||||||
| namespace esphome { | namespace esphome { | ||||||
| namespace statsd { | namespace statsd { | ||||||
|  |  | ||||||
| @@ -154,3 +155,4 @@ void StatsdComponent::send_(std::string *out) { | |||||||
|  |  | ||||||
| }  // namespace statsd | }  // namespace statsd | ||||||
| }  // namespace esphome | }  // namespace esphome | ||||||
|  | #endif | ||||||
|   | |||||||
| @@ -3,6 +3,7 @@ | |||||||
| #include <vector> | #include <vector> | ||||||
|  |  | ||||||
| #include "esphome/core/defines.h" | #include "esphome/core/defines.h" | ||||||
|  | #ifdef USE_NETWORK | ||||||
| #include "esphome/core/component.h" | #include "esphome/core/component.h" | ||||||
| #include "esphome/components/socket/socket.h" | #include "esphome/components/socket/socket.h" | ||||||
| #include "esphome/components/network/ip_address.h" | #include "esphome/components/network/ip_address.h" | ||||||
| @@ -84,3 +85,4 @@ class StatsdComponent : public PollingComponent { | |||||||
|  |  | ||||||
| }  // namespace statsd | }  // namespace statsd | ||||||
| }  // namespace esphome | }  // namespace esphome | ||||||
|  | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user