From f751c3828ed614cdc140d93c1f6b3995ba95275f Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sun, 1 Aug 2021 12:33:10 +0200 Subject: [PATCH] Fix MQTT light include (#2104) Fixes https://github.com/esphome/issues/issues/2285 --- esphome/components/mqtt/mqtt_light.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mqtt/mqtt_light.cpp b/esphome/components/mqtt/mqtt_light.cpp index bf483bf947..be662867cf 100644 --- a/esphome/components/mqtt/mqtt_light.cpp +++ b/esphome/components/mqtt/mqtt_light.cpp @@ -1,9 +1,9 @@ #include "mqtt_light.h" -#include "esphome/components/light/light_json_schema.h" #include "esphome/core/log.h" #ifdef USE_LIGHT +#include "esphome/components/light/light_json_schema.h" namespace esphome { namespace mqtt {