From ea4e714f6253c49136a95901e1d3923a26d85396 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Jan 2026 07:24:54 -1000 Subject: [PATCH 1/2] [core] Fix platform subcomponents not filtering source files --- esphome/components/debug/sensor.py | 2 +- esphome/components/debug/text_sensor.py | 2 +- esphome/components/nextion/display.py | 2 +- esphome/components/remote_receiver/binary_sensor.py | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/esphome/components/debug/sensor.py b/esphome/components/debug/sensor.py index 4484f159352..badf5736918 100644 --- a/esphome/components/debug/sensor.py +++ b/esphome/components/debug/sensor.py @@ -17,7 +17,7 @@ from esphome.const import ( UNIT_PERCENT, ) -from . import CONF_DEBUG_ID, DebugComponent +from . import CONF_DEBUG_ID, FILTER_SOURCE_FILES, DebugComponent # noqa: F401 DEPENDENCIES = ["debug"] diff --git a/esphome/components/debug/text_sensor.py b/esphome/components/debug/text_sensor.py index 96ef2318501..a10a3c2a874 100644 --- a/esphome/components/debug/text_sensor.py +++ b/esphome/components/debug/text_sensor.py @@ -8,7 +8,7 @@ from esphome.const import ( ICON_RESTART, ) -from . import CONF_DEBUG_ID, DebugComponent +from . import CONF_DEBUG_ID, FILTER_SOURCE_FILES, DebugComponent # noqa: F401 DEPENDENCIES = ["debug"] diff --git a/esphome/components/nextion/display.py b/esphome/components/nextion/display.py index b95df55a61a..9a164810fa7 100644 --- a/esphome/components/nextion/display.py +++ b/esphome/components/nextion/display.py @@ -11,7 +11,7 @@ from esphome.const import ( ) from esphome.core import CORE, TimePeriod -from . import Nextion, nextion_ns, nextion_ref +from . import FILTER_SOURCE_FILES, Nextion, nextion_ns, nextion_ref # noqa: F401 from .base_component import ( CONF_AUTO_WAKE_ON_TOUCH, CONF_COMMAND_SPACING, diff --git a/esphome/components/remote_receiver/binary_sensor.py b/esphome/components/remote_receiver/binary_sensor.py index 218b40d6cc4..e309d671966 100644 --- a/esphome/components/remote_receiver/binary_sensor.py +++ b/esphome/components/remote_receiver/binary_sensor.py @@ -1,5 +1,7 @@ from esphome.components import binary_sensor, remote_base +from . import FILTER_SOURCE_FILES # noqa: F401 + DEPENDENCIES = ["remote_receiver"] CONFIG_SCHEMA = remote_base.validate_binary_sensor From e351c65c936698dd8f12eeb127aea71dd4f7333e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Jan 2026 07:30:56 -1000 Subject: [PATCH 2/2] [core] Fix platform subcomponents not filtering source files --- esphome/components/debug/sensor.py | 6 +++++- esphome/components/debug/text_sensor.py | 6 +++++- esphome/components/nextion/display.py | 7 ++++++- esphome/components/remote_receiver/binary_sensor.py | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/esphome/components/debug/sensor.py b/esphome/components/debug/sensor.py index badf5736918..6a8e2cd828c 100644 --- a/esphome/components/debug/sensor.py +++ b/esphome/components/debug/sensor.py @@ -17,7 +17,11 @@ from esphome.const import ( UNIT_PERCENT, ) -from . import CONF_DEBUG_ID, FILTER_SOURCE_FILES, DebugComponent # noqa: F401 +from . import ( # noqa: F401 pylint: disable=unused-import + CONF_DEBUG_ID, + FILTER_SOURCE_FILES, + DebugComponent, +) DEPENDENCIES = ["debug"] diff --git a/esphome/components/debug/text_sensor.py b/esphome/components/debug/text_sensor.py index a10a3c2a874..c69b8d9461e 100644 --- a/esphome/components/debug/text_sensor.py +++ b/esphome/components/debug/text_sensor.py @@ -8,7 +8,11 @@ from esphome.const import ( ICON_RESTART, ) -from . import CONF_DEBUG_ID, FILTER_SOURCE_FILES, DebugComponent # noqa: F401 +from . import ( # noqa: F401 pylint: disable=unused-import + CONF_DEBUG_ID, + FILTER_SOURCE_FILES, + DebugComponent, +) DEPENDENCIES = ["debug"] diff --git a/esphome/components/nextion/display.py b/esphome/components/nextion/display.py index 9a164810fa7..0b4ba3a1719 100644 --- a/esphome/components/nextion/display.py +++ b/esphome/components/nextion/display.py @@ -11,7 +11,12 @@ from esphome.const import ( ) from esphome.core import CORE, TimePeriod -from . import FILTER_SOURCE_FILES, Nextion, nextion_ns, nextion_ref # noqa: F401 +from . import ( # noqa: F401 pylint: disable=unused-import + FILTER_SOURCE_FILES, + Nextion, + nextion_ns, + nextion_ref, +) from .base_component import ( CONF_AUTO_WAKE_ON_TOUCH, CONF_COMMAND_SPACING, diff --git a/esphome/components/remote_receiver/binary_sensor.py b/esphome/components/remote_receiver/binary_sensor.py index e309d671966..fe3e2af9503 100644 --- a/esphome/components/remote_receiver/binary_sensor.py +++ b/esphome/components/remote_receiver/binary_sensor.py @@ -1,6 +1,6 @@ from esphome.components import binary_sensor, remote_base -from . import FILTER_SOURCE_FILES # noqa: F401 +from . import FILTER_SOURCE_FILES # noqa: F401 pylint: disable=unused-import DEPENDENCIES = ["remote_receiver"]