mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 23:03:46 +01:00
uart grouping
This commit is contained in:
@@ -91,7 +91,7 @@ def uses_local_file_references(component_dir: Path) -> bool:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
content = common_yaml.read_text()
|
content = common_yaml.read_text()
|
||||||
except Exception:
|
except Exception: # pylint: disable=broad-exception-caught
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Pattern to match $component_dir or ${component_dir} references
|
# Pattern to match $component_dir or ${component_dir} references
|
||||||
@@ -113,7 +113,7 @@ def extract_common_buses(yaml_file: Path) -> set[str]:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
content = yaml_file.read_text()
|
content = yaml_file.read_text()
|
||||||
except Exception:
|
except Exception: # pylint: disable=broad-exception-caught
|
||||||
return set()
|
return set()
|
||||||
|
|
||||||
buses = set()
|
buses = set()
|
||||||
|
@@ -24,6 +24,7 @@ import sys
|
|||||||
# Add esphome to path
|
# Add esphome to path
|
||||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||||
|
|
||||||
|
# pylint: disable=wrong-import-position
|
||||||
from script.analyze_component_buses import (
|
from script.analyze_component_buses import (
|
||||||
analyze_all_components,
|
analyze_all_components,
|
||||||
create_grouping_signature,
|
create_grouping_signature,
|
||||||
@@ -235,7 +236,7 @@ def run_grouped_test(
|
|||||||
tests_dir=tests_dir,
|
tests_dir=tests_dir,
|
||||||
output_file=merged_config_file,
|
output_file=merged_config_file,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e: # pylint: disable=broad-exception-caught
|
||||||
print(f"Error merging configs for {components}: {e}")
|
print(f"Error merging configs for {components}: {e}")
|
||||||
if not continue_on_fail:
|
if not continue_on_fail:
|
||||||
raise
|
raise
|
||||||
|
Reference in New Issue
Block a user