mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00:00
[code-quality] fix clang-tidy wake_on_lan (#7275)
This commit is contained in:
parent
bec2d42c79
commit
56e05998ef
@ -1,4 +1,5 @@
|
|||||||
#include "wake_on_lan.h"
|
#include "wake_on_lan.h"
|
||||||
|
#ifdef USE_NETWORK
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
#include "esphome/components/network/ip_address.h"
|
#include "esphome/components/network/ip_address.h"
|
||||||
#include "esphome/components/network/util.h"
|
#include "esphome/components/network/util.h"
|
||||||
@ -85,3 +86,4 @@ void WakeOnLanButton::setup() {
|
|||||||
|
|
||||||
} // namespace wake_on_lan
|
} // namespace wake_on_lan
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
#endif
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "esphome/core/defines.h"
|
||||||
|
#ifdef USE_NETWORK
|
||||||
#include "esphome/components/button/button.h"
|
#include "esphome/components/button/button.h"
|
||||||
#include "esphome/core/component.h"
|
#include "esphome/core/component.h"
|
||||||
#if defined(USE_SOCKET_IMPL_BSD_SOCKETS) || defined(USE_SOCKET_IMPL_LWIP_SOCKETS)
|
#if defined(USE_SOCKET_IMPL_BSD_SOCKETS) || defined(USE_SOCKET_IMPL_LWIP_SOCKETS)
|
||||||
@ -32,3 +33,4 @@ class WakeOnLanButton : public button::Button, public Component {
|
|||||||
|
|
||||||
} // namespace wake_on_lan
|
} // namespace wake_on_lan
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user