25 void play(const Ts &...
x)
override {
26 if (this->current_temperature_.has_value())
27 this->parent_->current_temperature = this->current_temperature_.value(
x...);
28 if (this->current_humidity_.has_value())
29 this->parent_->current_humidity = this->current_humidity_.value(
x...);
30 if (this->target_temperature_.has_value())
31 this->parent_->set_target_temperature(this->target_temperature_.value(
x...));
32 if (this->target_temperature_low_.has_value())
33 this->parent_->set_target_temperature_low(this->target_temperature_low_.value(
x...));
34 if (this->target_temperature_high_.has_value())
35 this->parent_->set_target_temperature_high(this->target_temperature_high_.value(
x...));
36 if (this->target_humidity_.has_value())
37 this->parent_->set_target_humidity(this->target_humidity_.value(
x...));
38 if (this->mode_.has_value())
39 this->parent_->set_mode(this->mode_.value(
x...));
40 if (this->action_.has_value())
41 this->parent_->action = this->action_.value(
x...);
42 if (this->fan_mode_.has_value())
43 this->parent_->set_fan_mode(this->fan_mode_.value(
x...));
44 if (this->custom_fan_mode_.has_value())
45 this->parent_->set_custom_fan_mode(
StringRef(this->custom_fan_mode_.value(
x...)));
46 if (this->swing_mode_.has_value())
47 this->parent_->set_swing_mode(this->swing_mode_.value(
x...));
48 if (this->preset_.has_value())
49 this->parent_->set_preset(this->preset_.value(
x...));
50 if (this->custom_preset_.has_value())
51 this->parent_->set_custom_preset(
StringRef(this->custom_preset_.value(
x...)));
53 this->parent_->publish_state();