[code-quality] statsd component (#7603)

Co-authored-by: Tomasz Duda <tomaszduda23@gmai.com>
This commit is contained in:
tomaszduda23 2024-10-16 05:22:45 +02:00 committed by GitHub
parent 403d450f47
commit b0a25872da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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