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 };