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

Allow custom integrations to support application_credentials platform (#71129)

This commit is contained in:
Raman Gupta
2022-05-01 19:26:22 -04:00
committed by GitHub
parent d8ee9c1922
commit ae01ec02e2
6 changed files with 66 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ APPLICATION_CREDENTIALS = {}
def generate_and_validate(integrations: dict[str, Integration], config: Config) -> str:
"""Validate and generate config flow data."""
"""Validate and generate application_credentials data."""
match_list = []

View File

@@ -98,9 +98,9 @@ class Integration:
return self.manifest.get("quality_scale")
@property
def config_flow(self) -> str:
def config_flow(self) -> bool:
"""Return if the integration has a config flow."""
return self.manifest.get("config_flow")
return self.manifest.get("config_flow", False)
@property
def requirements(self) -> list[str]: