1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix docker hassfest (#132823)

This commit is contained in:
Robert Resch
2024-12-11 08:55:00 +01:00
committed by GitHub
parent 5e17721568
commit af838077cc
20 changed files with 85 additions and 49 deletions

View File

@@ -6,7 +6,7 @@ https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/d
import ast
from script.hassfest import ast_parse_module
from script.hassfest.model import Integration
from script.hassfest.model import Config, Integration
MANIFEST_KEYS = [
"bluetooth",
@@ -38,7 +38,9 @@ def _has_discovery_function(module: ast.Module) -> bool:
)
def validate(integration: Integration, *, rules_done: set[str]) -> list[str] | None:
def validate(
config: Config, integration: Integration, *, rules_done: set[str]
) -> list[str] | None:
"""Validate that the integration implements diagnostics."""
config_flow_file = integration.path / "config_flow.py"