mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 19:18:09 +01:00
[code-quality] statsd component (#7603)
Co-authored-by: Tomasz Duda <tomaszduda23@gmai.com>
This commit is contained in:
parent
403d450f47
commit
b0a25872da
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue