mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Allow no_subscription repair issue in cloud (#144380)
This commit is contained in:
parent
9a332f19c2
commit
c5ef8659a7
@ -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",
|
||||
}
|
||||
|
@ -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."
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user