mirror of
https://github.com/esphome/esphome.git
synced 2025-08-05 09:57:47 +00:00
tweaks
This commit is contained in:
parent
8677918157
commit
737e1284af
@ -45,9 +45,6 @@ async def to_code(config):
|
||||
|
||||
def FILTER_SOURCE_FILES() -> list[str]:
|
||||
"""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]
|
||||
|
||||
# Build list of files to exclude based on selected implementation
|
||||
|
@ -553,11 +553,10 @@ def filter_source_files_from_platform(
|
||||
return []
|
||||
|
||||
# Return files that should be excluded for current platform
|
||||
excluded = []
|
||||
for filename, platforms in files_map.items():
|
||||
if current_platform_framework not in platforms:
|
||||
excluded.append(filename)
|
||||
|
||||
return excluded
|
||||
return [
|
||||
filename
|
||||
for filename, platforms in files_map.items()
|
||||
if current_platform_framework not in platforms
|
||||
]
|
||||
|
||||
return filter_source_files
|
||||
|
Loading…
x
Reference in New Issue
Block a user