mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
[code-quality] udp component
This commit is contained in:
parent
2cca26ada4
commit
350a54fbb3
2 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "esphome/components/network/util.h"
|
||||
#include "udp_component.h"
|
||||
|
||||
#ifdef USE_NETWORK
|
||||
namespace esphome {
|
||||
namespace udp {
|
||||
|
||||
|
@ -614,3 +615,4 @@ void UDPComponent::send_ping_pong_request_() {
|
|||
}
|
||||
} // namespace udp
|
||||
} // namespace esphome
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
#ifdef USE_NETWORK
|
||||
#ifdef USE_SENSOR
|
||||
#include "esphome/components/sensor/sensor.h"
|
||||
#endif
|
||||
|
@ -156,3 +157,4 @@ class UDPComponent : public PollingComponent {
|
|||
|
||||
} // namespace udp
|
||||
} // namespace esphome
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue