[zwave_proxy] Add missing USE_API guards for clang-tidy (#12590)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
#include "zwave_proxy.h"
|
#include "zwave_proxy.h"
|
||||||
|
|
||||||
|
#ifdef USE_API
|
||||||
|
|
||||||
#include "esphome/components/api/api_server.h"
|
#include "esphome/components/api/api_server.h"
|
||||||
#include "esphome/core/application.h"
|
#include "esphome/core/application.h"
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
@@ -344,3 +347,5 @@ bool ZWaveProxy::response_handler_() {
|
|||||||
ZWaveProxy *global_zwave_proxy = nullptr; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
ZWaveProxy *global_zwave_proxy = nullptr; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
|
|
||||||
} // namespace esphome::zwave_proxy
|
} // namespace esphome::zwave_proxy
|
||||||
|
|
||||||
|
#endif // USE_API
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "esphome/core/defines.h"
|
||||||
|
#ifdef USE_API
|
||||||
|
|
||||||
#include "esphome/components/api/api_connection.h"
|
#include "esphome/components/api/api_connection.h"
|
||||||
#include "esphome/components/api/api_pb2.h"
|
#include "esphome/components/api/api_pb2.h"
|
||||||
#include "esphome/core/component.h"
|
#include "esphome/core/component.h"
|
||||||
@@ -89,3 +92,5 @@ class ZWaveProxy : public uart::UARTDevice, public Component {
|
|||||||
extern ZWaveProxy *global_zwave_proxy; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
extern ZWaveProxy *global_zwave_proxy; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
|
|
||||||
} // namespace esphome::zwave_proxy
|
} // namespace esphome::zwave_proxy
|
||||||
|
|
||||||
|
#endif // USE_API
|
||||||
|
|||||||
Reference in New Issue
Block a user