15 void play(const Ts &...
x)
override {
16 if (this->current_temperature_.has_value()) {
17 this->parent_->set_current_temperature(this->current_temperature_.value(x...));
19 bool needs_call = this->target_temperature_.has_value() || this->mode_.has_value();
21 auto call = this->
parent_->make_call();
22 if (this->target_temperature_.has_value()) {
23 call.set_target_temperature(this->target_temperature_.value(
x...));
25 if (this->mode_.has_value()) {
26 call.set_mode(this->mode_.value(
x...));