From 7ba0a043d7d837822a014d41031adf21a60efe41 Mon Sep 17 00:00:00 2001 From: Djordje <6750655+DjordjeMandic@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:11:40 +0100 Subject: [PATCH] Move using to header --- esphome/components/midea/air_conditioner.cpp | 3 --- esphome/components/midea/ir_transmitter.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/esphome/components/midea/air_conditioner.cpp b/esphome/components/midea/air_conditioner.cpp index 4a55f50333..2dc010a31d 100644 --- a/esphome/components/midea/air_conditioner.cpp +++ b/esphome/components/midea/air_conditioner.cpp @@ -11,9 +11,6 @@ namespace esphome { namespace midea { namespace ac { -using IrFollowMeData = midea_ir::FollowMeData; -using IrSpecialData = midea_ir::SpecialData; - static void set_sensor(Sensor *sensor, float value) { if (sensor != nullptr && (!sensor->has_state() || sensor->get_raw_state() != value)) sensor->publish_state(value); diff --git a/esphome/components/midea/ir_transmitter.h b/esphome/components/midea/ir_transmitter.h index 00b1713f1e..2cd5c0000c 100644 --- a/esphome/components/midea/ir_transmitter.h +++ b/esphome/components/midea/ir_transmitter.h @@ -10,6 +10,8 @@ namespace midea { using remote_base::RemoteTransmitterBase; using IrData = remote_base::MideaData; +using IrFollowMeData = midea_ir::FollowMeData; +using IrSpecialData = midea_ir::SpecialData; class IrTransmitter { public: