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