Allow custom integrations to support application_credentials platform (#71129)
This commit is contained in:
parent
d8ee9c1922
commit
ae01ec02e2
6 changed files with 66 additions and 10 deletions
|
@ -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 = []
|
||||
|
||||
|
|
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue