1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-21 19:23:45 +01:00

esp32 only platforms

This commit is contained in:
J. Nick Koston
2025-10-17 16:11:28 -10:00
parent 29b9073d62
commit f5d69a2539
3 changed files with 20 additions and 28 deletions

View File

@@ -54,6 +54,7 @@ from helpers import (
changed_files,
get_all_dependencies,
get_components_from_integration_fixtures,
parse_test_filename,
root_path,
)
@@ -335,11 +336,8 @@ def detect_memory_impact_config(
# Check if component has tests for any preferred platform
available_platforms = []
for test_file in test_files:
parts = test_file.stem.split(".")
if len(parts) < 2:
continue
platform = parts[1]
if platform in PLATFORM_PREFERENCE:
_, platform = parse_test_filename(test_file)
if platform != "all" and platform in PLATFORM_PREFERENCE:
available_platforms.append(platform)
if not available_platforms: