From e254f2fab449cc69419d82384f5f456172deff84 Mon Sep 17 00:00:00 2001 From: Djordje <6750655+DjordjeMandic@users.noreply.github.com> Date: Fri, 22 Nov 2024 01:07:34 +0100 Subject: [PATCH] fix constructor names --- esphome/components/midea/ir_transmitter.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/esphome/components/midea/ir_transmitter.h b/esphome/components/midea/ir_transmitter.h index e93ba57a9e..eba8fc87f7 100644 --- a/esphome/components/midea/ir_transmitter.h +++ b/esphome/components/midea/ir_transmitter.h @@ -13,16 +13,16 @@ using IrData = remote_base::MideaData; class IrFollowMeData : public IrData { public: // Default constructor (temp: 30C, beeper: off) - FollowMeData() : IrData({MIDEA_TYPE_FOLLOW_ME, 0x82, 0x48, 0x7F, 0x1F}) {} + IrFollowMeData() : IrData({MIDEA_TYPE_FOLLOW_ME, 0x82, 0x48, 0x7F, 0x1F}) {} // Copy from Base - FollowMeData(const IrData &data) : IrData(data) {} + IrFollowMeData(const IrData &data) : IrData(data) {} // Direct from temperature in celsius and beeper values - FollowMeData(uint8_t temp, bool beeper = false) : FollowMeData() { + IrFollowMeData(uint8_t temp, bool beeper = false) : IrFollowMeData() { this->set_temp(temp, false); this->set_beeper(beeper); } // Direct from temperature, fahrenheit and beeper values - FollowMeData(uint8_t temp, bool fahrenheit, bool beeper) : FollowMeData() { + IrFollowMeData(uint8_t temp, bool fahrenheit, bool beeper) : IrFollowMeData() { this->set_temp(temp, fahrenheit); this->set_beeper(beeper); } @@ -67,7 +67,7 @@ class IrFollowMeData : public IrData { class IrSpecialData : public IrData { public: - SpecialData(uint8_t code) : IrData({MIDEA_TYPE_SPECIAL, code, 0xFF, 0xFF, 0xFF}) {} + IrSpecialData(uint8_t code) : IrData({MIDEA_TYPE_SPECIAL, code, 0xFF, 0xFF, 0xFF}) {} }; class IrTransmitter {