diff --git a/esphome/components/runtime_stats/runtime_stats.h b/esphome/components/runtime_stats/runtime_stats.h index 7e763810eb..de241e439c 100644 --- a/esphome/components/runtime_stats/runtime_stats.h +++ b/esphome/components/runtime_stats/runtime_stats.h @@ -11,10 +11,11 @@ #include #include "esphome/core/helpers.h" #include "esphome/core/log.h" -#include "esphome/core/component.h" namespace esphome { +class Component; // Forward declaration + namespace runtime_stats { static const char *const TAG = "runtime_stats";