From cf9d807bf05bf777405e5d200d83faea2aa07bf1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 25 Sep 2026 20:20:57 +0100 Subject: [PATCH] [core] Make Action::stop_complex and Action::is_running non-virtual (#19662) --- esphome/core/automation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/core/automation.h b/esphome/core/automation.h index b6058925b4..61f34d70f4 100644 --- a/esphome/core/automation.h +++ b/esphome/core/automation.h @@ -486,7 +486,7 @@ template class Action { this->play(x...); this->play_next_(x...); } - virtual void stop_complex() { + void stop_complex() { if (num_running_) { this->stop(); this->num_running_ = 0; @@ -494,7 +494,7 @@ template class Action { this->stop_next_(); } /// Check if this or any of the following actions are currently running. - virtual bool is_running() { return this->num_running_ > 0 || this->is_running_next_(); } + bool is_running() { return this->num_running_ > 0 || this->is_running_next_(); } /// The total number of actions that are currently running in this plus any of /// the following actions in the chain.