fix clang-tidy statsd

This commit is contained in:
Tomasz Duda 2024-10-14 20:51:07 +02:00
parent 7ebaab8ec3
commit 35ee60264e
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#include "statsd.h"
#ifdef USE_NETWORK
namespace esphome {
namespace statsd {
@ -154,3 +155,4 @@ void StatsdComponent::send_(std::string *out) {
} // namespace statsd
} // namespace esphome
#endif

View file

@ -3,6 +3,7 @@
#include <vector>
#include "esphome/core/defines.h"
#ifdef USE_NETWORK
#include "esphome/core/component.h"
#include "esphome/components/socket/socket.h"
#include "esphome/components/network/ip_address.h"
@ -84,3 +85,4 @@ class StatsdComponent : public PollingComponent {
} // namespace statsd
} // namespace esphome
#endif