mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 11:56:25 +01:00
Apply suggestions from code review
Co-authored-by: RFDarter <rfdarter@googlemail.com>
This commit is contained in:
parent
a2f1e64dab
commit
48852aae93
@ -81,17 +81,11 @@ struct IRData {
|
||||
|
||||
void DaikinClimate::transmit_state() {
|
||||
IRData irdata{{{0x16}}};
|
||||
|
||||
irdata.mode = this->operation_mode_();
|
||||
|
||||
irdata.fan_speed = this->fan_speed_();
|
||||
|
||||
irdata.temperature = this->temperature_();
|
||||
|
||||
irdata.swing = this->swing_();
|
||||
|
||||
irdata.set_power(this->mode != climate::CLIMATE_MODE_OFF);
|
||||
|
||||
irdata.set_checksum();
|
||||
|
||||
auto transmit = this->transmitter_->transmit();
|
||||
|
Loading…
Reference in New Issue
Block a user