mirror of
https://github.com/esphome/esphome.git
synced 2025-08-07 02:47: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]:
|
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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user