mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Apply suggestions from code review
Co-authored-by: RFDarter <rfdarter@googlemail.com>
This commit is contained in:
parent
a2f1e64dab
commit
48852aae93
1 changed files with 0 additions and 6 deletions
|
@ -81,17 +81,11 @@ struct IRData {
|
||||||
|
|
||||||
void DaikinClimate::transmit_state() {
|
void DaikinClimate::transmit_state() {
|
||||||
IRData irdata{{{0x16}}};
|
IRData irdata{{{0x16}}};
|
||||||
|
|
||||||
irdata.mode = this->operation_mode_();
|
irdata.mode = this->operation_mode_();
|
||||||
|
|
||||||
irdata.fan_speed = this->fan_speed_();
|
irdata.fan_speed = this->fan_speed_();
|
||||||
|
|
||||||
irdata.temperature = this->temperature_();
|
irdata.temperature = this->temperature_();
|
||||||
|
|
||||||
irdata.swing = this->swing_();
|
irdata.swing = this->swing_();
|
||||||
|
|
||||||
irdata.set_power(this->mode != climate::CLIMATE_MODE_OFF);
|
irdata.set_power(this->mode != climate::CLIMATE_MODE_OFF);
|
||||||
|
|
||||||
irdata.set_checksum();
|
irdata.set_checksum();
|
||||||
|
|
||||||
auto transmit = this->transmitter_->transmit();
|
auto transmit = this->transmitter_->transmit();
|
||||||
|
|
Loading…
Reference in a new issue