1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-07 04:13:47 +01:00
This commit is contained in:
J. Nick Koston
2025-07-06 13:18:10 -05:00
parent 8677918157
commit 737e1284af
2 changed files with 5 additions and 9 deletions

View File

@@ -45,9 +45,6 @@ async def to_code(config):
def FILTER_SOURCE_FILES() -> list[str]: def FILTER_SOURCE_FILES() -> list[str]:
"""Return list of socket implementation files that aren't selected by the user.""" """Return list of socket implementation files that aren't selected by the user."""
if not hasattr(CORE, "config") or "socket" not in CORE.config:
return []
impl = CORE.config["socket"][CONF_IMPLEMENTATION] impl = CORE.config["socket"][CONF_IMPLEMENTATION]
# Build list of files to exclude based on selected implementation # Build list of files to exclude based on selected implementation

View File

@@ -553,11 +553,10 @@ def filter_source_files_from_platform(
return [] return []
# Return files that should be excluded for current platform # Return files that should be excluded for current platform
excluded = [] return [
for filename, platforms in files_map.items(): filename
if current_platform_framework not in platforms: for filename, platforms in files_map.items()
excluded.append(filename) if current_platform_framework not in platforms
]
return excluded
return filter_source_files return filter_source_files