mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
[core] Make Action::stop_complex and Action::is_running non-virtual (#19662)
This commit is contained in:
@@ -486,7 +486,7 @@ template<typename... Ts> 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<typename... Ts> 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.
|
||||
|
||||
Reference in New Issue
Block a user