diff --git a/esphome/components/midea/ir_transmitter.h b/esphome/components/midea/ir_transmitter.h index 4da37cf043..7e30d6f7b3 100644 --- a/esphome/components/midea/ir_transmitter.h +++ b/esphome/components/midea/ir_transmitter.h @@ -29,7 +29,7 @@ class IrFollowMeData : public IrData { } /* TEMPERATURE */ - uint8_t temp() const { + uint8_t temp() const { if (this->fahrenheit()) { return this->get_value_(4) + 31; } @@ -43,7 +43,7 @@ class IrFollowMeData : public IrData { } else { val = esphome::clamp(val, MIN_TEMP_C, MAX_TEMP_C) + 1; } - this->set_value_(4, val); + this->set_value_(4, val); } /* BEEPER */ diff --git a/esphome/components/midea_ir/midea_data.h b/esphome/components/midea_ir/midea_data.h index 9a35d5f260..90641f1e43 100644 --- a/esphome/components/midea_ir/midea_data.h +++ b/esphome/components/midea_ir/midea_data.h @@ -75,7 +75,7 @@ class FollowMeData : public MideaData { } /* TEMPERATURE */ - uint8_t temp() const { + uint8_t temp() const { if (this->fahrenheit()) { return this->get_value_(4) + 31; } @@ -89,7 +89,7 @@ class FollowMeData : public MideaData { } else { val = esphome::clamp(val, MIN_TEMP_C, MAX_TEMP_C) + 1; } - this->set_value_(4, val); + this->set_value_(4, val); } /* BEEPER */