mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +00:00
Fixed typos in resolution notify (#2646)
This commit is contained in:
parent
3760967f59
commit
f3aa3757ce
@ -55,8 +55,8 @@ class ResolutionNotify(CoreSysAttributes):
|
|||||||
if issue.type == IssueType.PWNED and issue.context == ContextType.ADDON:
|
if issue.type == IssueType.PWNED and issue.context == ContextType.ADDON:
|
||||||
messages.append(
|
messages.append(
|
||||||
{
|
{
|
||||||
"title": f"Insecure Secrets on {issue.reference}",
|
"title": f"Insecure secrets in {issue.reference}",
|
||||||
"message": f"The Add-on {issue.reference} uses secrets which are detected as not secure, see see https://www.home-assistant.io/more-info/pwned-passwords for more information.",
|
"message": f"The add-on {issue.reference} uses secrets which are detected as not secure, see https://www.home-assistant.io/more-info/pwned-passwords for more information.",
|
||||||
"notification_id": f"supervisor_issue_pwned_{issue.reference}",
|
"notification_id": f"supervisor_issue_pwned_{issue.reference}",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -69,7 +69,7 @@ class ResolutionNotify(CoreSysAttributes):
|
|||||||
json=message,
|
json=message,
|
||||||
) as resp:
|
) as resp:
|
||||||
if resp.status in (200, 201):
|
if resp.status in (200, 201):
|
||||||
_LOGGER.debug("Sucessfully created persistent_notification")
|
_LOGGER.debug("Successfully created persistent_notification")
|
||||||
else:
|
else:
|
||||||
_LOGGER.error("Can't create persistant notification")
|
_LOGGER.error("Can't create persistant notification")
|
||||||
except HomeAssistantAPIError:
|
except HomeAssistantAPIError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user