1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-16 18:22:22 +01:00

[core] Dont copy platform source files if there are no entities of that type (#10436)

This commit is contained in:
Jesse Hills
2025-08-26 07:46:54 +12:00
committed by GitHub
parent 6da8ec8d55
commit 5e508f7461
2 changed files with 5 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ the custom_components folder or the external_components feature.
def copy_src_tree():
source_files: list[loader.FileResource] = []
for _, component in iter_components(CORE.config):
for _, component in iter_components(CORE.config, CORE.platform_counts):
source_files += component.resources
source_files_map = {
Path(x.package.replace(".", "/") + "/" + x.resource): x for x in source_files