From 52a5cccc77f3f8845bb061f69d0763c382bd4098 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 2 Nov 2025 17:39:57 -0600 Subject: [PATCH] fix regression from moved code that was conflicted --- esphome/core/base_automation.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/core/base_automation.h b/esphome/core/base_automation.h index a31c501060..78838c70c8 100644 --- a/esphome/core/base_automation.h +++ b/esphome/core/base_automation.h @@ -330,9 +330,7 @@ template class WhileAction : public Action { template void WhileLoopContinuation::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...);