Fix repair issue about no yaml for config entries (#94271)

This commit is contained in:
Franck Nijhof 2023-06-08 18:22:34 +02:00 committed by GitHub
parent 76535d3f7d
commit 6db1fbf480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -1132,7 +1132,7 @@ def config_entry_only_config_schema(domain: str) -> Callable[[dict], dict]:
domain, domain,
"config_entry_only", "config_entry_only",
"config_entry_only", "config_entry_only",
{"add_integration": f"/_my_redirect/config_flow_start?domain={domain}"}, {"add_integration": f"/config/integrations/dashboard/add?domain={domain}"},
) )

View file

@ -240,12 +240,15 @@ async def _async_setup_component(
async_create_issue( async_create_issue(
hass, hass,
HOMEASSISTANT_DOMAIN, HOMEASSISTANT_DOMAIN,
f"config_entry_only{domain}", f"config_entry_only_{domain}",
is_fixable=False, is_fixable=False,
severity=IssueSeverity.ERROR, severity=IssueSeverity.ERROR,
issue_domain=domain, issue_domain=domain,
translation_key="config_entry_only", translation_key="config_entry_only",
translation_placeholders={"domain": domain}, translation_placeholders={
"domain": domain,
"add_integration": f"/config/integrations/dashboard/add?domain={domain}",
},
) )
start = timer() start = timer()