mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
[midea] apply suggested clang formatting
This commit is contained in:
parent
fb15a2a717
commit
98c53d6c6f
4 changed files with 11 additions and 6 deletions
|
@ -23,7 +23,8 @@ template<typename... Ts> class FollowMeAction : public MideaActionBase<Ts...> {
|
||||||
TEMPLATABLE_VALUE(bool, beeper)
|
TEMPLATABLE_VALUE(bool, beeper)
|
||||||
|
|
||||||
void play(Ts... x) override {
|
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...));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ void AirConditioner::do_follow_me(float temperature, bool fahrenheit, bool beepe
|
||||||
|
|
||||||
char temp_symbol = fahrenheit ? 'F' : 'C';
|
char temp_symbol = fahrenheit ? 'F' : 'C';
|
||||||
ESP_LOGD(Constants::TAG, "Follow me action called with temperature: %f °%c, rounded to: %u °%c", temperature,
|
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
|
// Create and transmit the data
|
||||||
IrFollowMeData data(temp_uint8, fahrenheit, beeper);
|
IrFollowMeData data(temp_uint8, fahrenheit, beeper);
|
||||||
|
|
|
@ -58,9 +58,11 @@ class IrFollowMeData : public IrData {
|
||||||
static const uint8_t MIN_TEMP_C = 0;
|
static const uint8_t MIN_TEMP_C = 0;
|
||||||
static const uint8_t MAX_TEMP_C = 37;
|
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;
|
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;
|
static const uint8_t MAX_TEMP_F = 99;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -104,9 +104,11 @@ class FollowMeData : public MideaData {
|
||||||
static const uint8_t MIN_TEMP_C = 0;
|
static const uint8_t MIN_TEMP_C = 0;
|
||||||
static const uint8_t MAX_TEMP_C = 37;
|
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;
|
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;
|
static const uint8_t MAX_TEMP_F = 99;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue