diff --git a/CODEOWNERS b/CODEOWNERS index ca3849eb0d..fb3c049db3 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -376,6 +376,7 @@ esphome/components/rp2040_pwm/* @jesserockz esphome/components/rpi_dpi_rgb/* @clydebarrow esphome/components/rtl87xx/* @kuba2k2 esphome/components/rtttl/* @glmnet +esphome/components/runtime_stats/* @bdraco esphome/components/safe_mode/* @jsuanet @kbx81 @paulmonigatti esphome/components/scd4x/* @martgras @sjtrny esphome/components/script/* @esphome/core diff --git a/esphome/components/runtime_stats/__init__.py b/esphome/components/runtime_stats/__init__.py index 64382194ec..fcbf6cea08 100644 --- a/esphome/components/runtime_stats/__init__.py +++ b/esphome/components/runtime_stats/__init__.py @@ -6,8 +6,6 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.const import CONF_ID -DEPENDENCIES = [] - CONF_LOG_INTERVAL = "log_interval" runtime_stats_ns = cg.esphome_ns.namespace("runtime_stats") @@ -23,15 +21,6 @@ CONFIG_SCHEMA = cv.Schema( ) -def FILTER_SOURCE_FILES() -> list[str]: - """Filter out runtime_stats.cpp when not enabled.""" - # When runtime_stats component is not included in the configuration, - # we don't want to compile runtime_stats.cpp - # This function is called when the component IS included, so we return - # an empty list to include all source files - return [] - - async def to_code(config): """Generate code for the runtime statistics component.""" # Define USE_RUNTIME_STATS when this component is used