From d42ea77f2dcf4dc0a5994d19927c3d655fa581ca Mon Sep 17 00:00:00 2001 From: Djordje <6750655+DjordjeMandic@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:48:39 +0100 Subject: [PATCH] Update includes --- esphome/components/midea/appliance_base.h | 1 - esphome/components/midea/ir_transmitter.h | 1 + esphome/components/midea_ir/__init__.py | 1 + esphome/components/midea_ir/climate.py | 1 - esphome/components/midea_ir/midea_data.h | 4 ---- 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/esphome/components/midea/appliance_base.h b/esphome/components/midea/appliance_base.h index 73a02af9b3..d6f2101ec6 100644 --- a/esphome/components/midea/appliance_base.h +++ b/esphome/components/midea/appliance_base.h @@ -15,7 +15,6 @@ #include "esphome/components/climate/climate.h" // IR -#include "esphome/components/midea_ir/midea_data.h" #include "ir_transmitter.h" namespace esphome { diff --git a/esphome/components/midea/ir_transmitter.h b/esphome/components/midea/ir_transmitter.h index 34903c8807..00b1713f1e 100644 --- a/esphome/components/midea/ir_transmitter.h +++ b/esphome/components/midea/ir_transmitter.h @@ -3,6 +3,7 @@ #ifdef USE_ARDUINO #ifdef USE_REMOTE_TRANSMITTER #include "esphome/components/remote_base/midea_protocol.h" +#include "esphome/components/midea_ir/midea_data.h" namespace esphome { namespace midea { diff --git a/esphome/components/midea_ir/__init__.py b/esphome/components/midea_ir/__init__.py index e69de29bb2..db3484e0be 100644 --- a/esphome/components/midea_ir/__init__.py +++ b/esphome/components/midea_ir/__init__.py @@ -0,0 +1 @@ +AUTO_LOAD = ["climate_ir", "coolix"] diff --git a/esphome/components/midea_ir/climate.py b/esphome/components/midea_ir/climate.py index 8fea6b192b..662c32712e 100644 --- a/esphome/components/midea_ir/climate.py +++ b/esphome/components/midea_ir/climate.py @@ -3,7 +3,6 @@ import esphome.config_validation as cv from esphome.components import climate_ir from esphome.const import CONF_ID, CONF_USE_FAHRENHEIT -AUTO_LOAD = ["climate_ir", "coolix"] CODEOWNERS = ["@dudanov"] midea_ir_ns = cg.esphome_ns.namespace("midea_ir") diff --git a/esphome/components/midea_ir/midea_data.h b/esphome/components/midea_ir/midea_data.h index 7af923bbbf..874fd0b72b 100644 --- a/esphome/components/midea_ir/midea_data.h +++ b/esphome/components/midea_ir/midea_data.h @@ -1,7 +1,5 @@ #pragma once -//#ifdef USE_REMOTE_TRANSMITTER - #include "esphome/components/remote_base/midea_protocol.h" #include "esphome/components/climate/climate_mode.h" #include "esphome/core/helpers.h" @@ -124,5 +122,3 @@ class SpecialData : public MideaData { } // namespace midea_ir } // namespace esphome - -//#endif // USE_REMOTE_TRANSMITTER