From 695b41763a5c24aa0f4e1f557636954bd60b5d43 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 31 Mar 2026 23:12:42 -1000 Subject: [PATCH] Add WarnIfComponentBlockingGuard as friend for runtime_stats_ access --- esphome/core/component.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/core/component.h b/esphome/core/component.h index 2b2ae78f55a..c5a331ee298 100644 --- a/esphome/core/component.h +++ b/esphome/core/component.h @@ -568,6 +568,7 @@ class Component { volatile bool pending_enable_loop_{false}; ///< ISR-safe flag for enable_loop_soon_any_context #ifdef USE_RUNTIME_STATS friend class runtime_stats::RuntimeStatsCollector; + friend class WarnIfComponentBlockingGuard; ComponentRuntimeStats runtime_stats_; #endif };