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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user