diff --git a/esphome/components/midea/ac_automations.h b/esphome/components/midea/ac_automations.h index ab17a91a15..84f8c5d19e 100644 --- a/esphome/components/midea/ac_automations.h +++ b/esphome/components/midea/ac_automations.h @@ -23,7 +23,8 @@ template class FollowMeAction : public MideaActionBase { TEMPLATABLE_VALUE(bool, beeper) void play(Ts... x) override { - this->parent_->do_follow_me(this->temperature_.value(x...), this->fahrenheit_.value(x...), this->beeper_.value(x...)); + this->parent_->do_follow_me(this->temperature_.value(x...), this->fahrenheit_.value(x...), + this->beeper_.value(x...)); } }; diff --git a/esphome/components/midea/air_conditioner.cpp b/esphome/components/midea/air_conditioner.cpp index 787299683a..2dc010a31d 100644 --- a/esphome/components/midea/air_conditioner.cpp +++ b/esphome/components/midea/air_conditioner.cpp @@ -136,7 +136,7 @@ void AirConditioner::do_follow_me(float temperature, bool fahrenheit, bool beepe char temp_symbol = fahrenheit ? 'F' : 'C'; ESP_LOGD(Constants::TAG, "Follow me action called with temperature: %f °%c, rounded to: %u °%c", temperature, - temp_symbol, temp_uint8, temp_symbol); + temp_symbol, temp_uint8, temp_symbol); // Create and transmit the data IrFollowMeData data(temp_uint8, fahrenheit, beeper); diff --git a/esphome/components/midea/ir_transmitter.h b/esphome/components/midea/ir_transmitter.h index 7e30d6f7b3..0c63cd9db0 100644 --- a/esphome/components/midea/ir_transmitter.h +++ b/esphome/components/midea/ir_transmitter.h @@ -58,9 +58,11 @@ class IrFollowMeData : public IrData { static const uint8_t MIN_TEMP_C = 0; static const uint8_t MAX_TEMP_C = 37; - // see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 + // see + // https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 static const uint8_t MIN_TEMP_F = 32; - // see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 + // see + // https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 static const uint8_t MAX_TEMP_F = 99; }; diff --git a/esphome/components/midea_ir/midea_data.h b/esphome/components/midea_ir/midea_data.h index 90641f1e43..a6f7a71987 100644 --- a/esphome/components/midea_ir/midea_data.h +++ b/esphome/components/midea_ir/midea_data.h @@ -104,9 +104,11 @@ class FollowMeData : public MideaData { static const uint8_t MIN_TEMP_C = 0; static const uint8_t MAX_TEMP_C = 37; - // see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 + // see + // https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 static const uint8_t MIN_TEMP_F = 32; - // see https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 + // see + // https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 static const uint8_t MAX_TEMP_F = 99; };