From 45034953288349a36dbd221fd4b2fdc87bb03a23 Mon Sep 17 00:00:00 2001 From: Djordje <6750655+DjordjeMandic@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:38:57 +0100 Subject: [PATCH] Update ir_transmitter.h --- esphome/components/midea/ir_transmitter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/midea/ir_transmitter.h b/esphome/components/midea/ir_transmitter.h index a93e02b3d7..34903c8807 100644 --- a/esphome/components/midea/ir_transmitter.h +++ b/esphome/components/midea/ir_transmitter.h @@ -8,12 +8,12 @@ namespace esphome { namespace midea { using remote_base::RemoteTransmitterBase; -using remote_base::MideaData; +using IrData = remote_base::MideaData; class IrTransmitter { public: void set_transmitter(RemoteTransmitterBase *transmitter) { this->transmitter_ = transmitter; } - void transmit(MideaData &data) { + void transmit(IrData &data) { data.finalize(); auto transmit = this->transmitter_->transmit(); remote_base::MideaProtocol().encode(transmit.get_data(), data);