Allow no_subscription repair issue in cloud (#144380)

This commit is contained in:
Joakim Sørensen 2025-05-07 11:07:15 +02:00 committed by GitHub
parent 9a332f19c2
commit c5ef8659a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -40,6 +40,7 @@ from .prefs import CloudPreferences
_LOGGER = logging.getLogger(__name__)
VALID_REPAIR_TRANSLATION_KEYS = {
"no_subscription",
"warn_bad_custom_domain_configuration",
"reset_bad_custom_domain_configuration",
}

View File

@ -62,6 +62,10 @@
}
}
},
"no_subscription": {
"title": "No subscription detected",
"description": "You do not have a Home Assistant Cloud subscription. Subscribe at {account_url}."
},
"warn_bad_custom_domain_configuration": {
"title": "Detected wrong custom domain configuration",
"description": "The DNS configuration for your custom domain ({custom_domains}) is not correct. Please check the DNS configuration of your domain and make sure it points to the correct CNAME."

View File

@ -468,7 +468,10 @@ async def test_async_create_repair_issue_known(
await cloud.client.async_create_repair_issue(
identifier=identifier,
translation_key=translation_key,
placeholders={"custom_domains": "example.com"},
placeholders={
"account_url": "http://example.org",
"custom_domains": "example.com",
},
severity="warning",
)
issue = issue_registry.async_get_issue(domain=DOMAIN, issue_id=identifier)