mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Add integration type (#68349)
This commit is contained in:
@@ -69,7 +69,10 @@ def validate_integration(config: Config, integration: Integration):
|
||||
|
||||
def generate_and_validate(integrations: dict[str, Integration], config: Config):
|
||||
"""Validate and generate config flow data."""
|
||||
domains = []
|
||||
domains = {
|
||||
"integration": [],
|
||||
"helper": [],
|
||||
}
|
||||
|
||||
for domain in sorted(integrations):
|
||||
integration = integrations[domain]
|
||||
@@ -79,7 +82,7 @@ def generate_and_validate(integrations: dict[str, Integration], config: Config):
|
||||
|
||||
validate_integration(config, integration)
|
||||
|
||||
domains.append(domain)
|
||||
domains[integration.integration_type].append(domain)
|
||||
|
||||
return BASE.format(json.dumps(domains, indent=4))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user