From 28a66d4bf08b6ba81b27d46e03b90d82939b2d1a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 6 Jul 2025 14:18:17 -0500 Subject: [PATCH] preen --- esphome/components/api/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/api/__init__.py b/esphome/components/api/__init__.py index 745a1bc58c..e720ee349f 100644 --- a/esphome/components/api/__init__.py +++ b/esphome/components/api/__init__.py @@ -318,7 +318,8 @@ async def api_connected_to_code(config, condition_id, template_arg, args): def FILTER_SOURCE_FILES() -> list[str]: """Filter out api_pb2_dump.cpp when proto message dumping is not enabled.""" # api_pb2_dump.cpp is only needed when HAS_PROTO_MESSAGE_DUMP is defined - # Check if HAS_PROTO_MESSAGE_DUMP is defined + # This is a particularly large file that still needs to be opened and read + # all the way to the end even when ifdef'd out if "HAS_PROTO_MESSAGE_DUMP" not in CORE.defines: return ["api_pb2_dump.cpp"]