From dfa4328604703a2e991274cdcf1e31cc01b16061 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 8 Jul 2025 13:03:01 -0600 Subject: [PATCH] tidy up --- esphome/core/application.cpp | 3 +++ esphome/core/application.h | 3 --- esphome/core/component.cpp | 3 +++ esphome/core/component.h | 3 --- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index 6face23e3c..085b4941d1 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -4,6 +4,9 @@ #include "esphome/core/hal.h" #include #include +#ifdef USE_RUNTIME_STATS +#include "esphome/components/runtime_stats/runtime_stats.h" +#endif #ifdef USE_STATUS_LED #include "esphome/components/status_led/status_led.h" diff --git a/esphome/core/application.h b/esphome/core/application.h index 2cdcdf9e6a..f2b5cb5c89 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -9,9 +9,6 @@ #include "esphome/core/hal.h" #include "esphome/core/helpers.h" #include "esphome/core/preferences.h" -#ifdef USE_RUNTIME_STATS -#include "esphome/components/runtime_stats/runtime_stats.h" -#endif #include "esphome/core/scheduler.h" #ifdef USE_DEVICES diff --git a/esphome/core/component.cpp b/esphome/core/component.cpp index 8dbd054602..3b1120bdd7 100644 --- a/esphome/core/component.cpp +++ b/esphome/core/component.cpp @@ -9,6 +9,9 @@ #include "esphome/core/hal.h" #include "esphome/core/helpers.h" #include "esphome/core/log.h" +#ifdef USE_RUNTIME_STATS +#include "esphome/components/runtime_stats/runtime_stats.h" +#endif namespace esphome { diff --git a/esphome/core/component.h b/esphome/core/component.h index c7342cd563..3734473a02 100644 --- a/esphome/core/component.h +++ b/esphome/core/component.h @@ -6,9 +6,6 @@ #include #include "esphome/core/optional.h" -#ifdef USE_RUNTIME_STATS -#include "esphome/components/runtime_stats/runtime_stats.h" -#endif namespace esphome {