1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 17:22:20 +01:00

Merge remote-tracking branch 'upstream/loop_done' into loop_done

This commit is contained in:
J. Nick Koston
2025-06-15 01:26:45 -05:00
2 changed files with 7 additions and 2 deletions

View File

@@ -98,6 +98,11 @@ void Application::loop() {
this->feed_wdt(last_op_end_time);
for (Component *component : this->looping_components_) {
// Skip components that are done or failed
if (component->should_skip_loop()) {
continue;
}
// Update the cached time before each component runs
this->loop_component_start_time_ = last_op_end_time;

View File

@@ -211,8 +211,8 @@ void HOT Scheduler::call() {
// Not reached timeout yet, done for this call
break;
}
// Don't run on failed or loop-done components
if (item->component != nullptr && item->component->should_skip_loop()) {
// Don't run on failed components
if (item->component != nullptr && item->component->is_failed()) {
LockGuard guard{this->lock_};
this->pop_raw_();
continue;