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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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]: