mirror of
https://github.com/esphome/esphome.git
synced 2026-02-20 16:35:37 -07:00
fix regression from moved code that was conflicted
This commit is contained in:
@@ -330,9 +330,7 @@ template<typename... Ts> class WhileAction : public Action<Ts...> {
|
||||
template<typename... Ts> void WhileLoopContinuation<Ts...>::play(Ts... x) {
|
||||
if (this->parent_->num_running_ > 0 && this->parent_->condition_->check(x...)) {
|
||||
// play again
|
||||
if (this->parent_->num_running_ > 0) {
|
||||
this->parent_->then_.play(x...);
|
||||
}
|
||||
this->parent_->then_.play(x...);
|
||||
} else {
|
||||
// condition false, play next
|
||||
this->parent_->play_next_(x...);
|
||||
|
||||
Reference in New Issue
Block a user