From 682a9613c97bda3e9daa2d784127745daadf2b92 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Mon, 12 Aug 2024 16:43:01 +0200 Subject: [PATCH] [code-quality] fix clang-tidy mqtt --- esphome/components/mqtt/mqtt_backend.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/mqtt/mqtt_backend.h b/esphome/components/mqtt/mqtt_backend.h index d23cda578d..3962c40a42 100644 --- a/esphome/components/mqtt/mqtt_backend.h +++ b/esphome/components/mqtt/mqtt_backend.h @@ -1,5 +1,6 @@ #pragma once - +#include "esphome/core/defines.h" +#ifdef USE_MQTT #include #include #include "esphome/components/network/ip_address.h" @@ -67,3 +68,4 @@ class MQTTBackend { } // namespace mqtt } // namespace esphome +#endif