From a8bb3d8c6f8c24703d510c163ca578a61cf2af4e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 17 Mar 2026 02:02:23 -1000 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- esphome/core/scheduler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/core/scheduler.h b/esphome/core/scheduler.h index 613053dec6e..d6f9ee2a44e 100644 --- a/esphome/core/scheduler.h +++ b/esphome/core/scheduler.h @@ -620,6 +620,7 @@ class Scheduler { // Counter for items marked for removal. Incremented cross-thread in cancel_item_locked_(). // On ESPHOME_THREAD_MULTI_ATOMICS this is read without a lock in the cleanup_() fast path; // on ESPHOME_THREAD_MULTI_NO_ATOMICS the fast path is disabled so cleanup_() always takes the lock. + // on ESPHOME_THREAD_MULTI_NO_ATOMICS the fast path is disabled so cleanup_() always takes the lock. #ifdef ESPHOME_THREAD_MULTI_ATOMICS std::atomic to_remove_{0}; #else