Fixed typos in resolution notify (#2646)

This commit is contained in:
Philip Allgaier 2021-03-01 09:44:16 +01:00 committed by GitHub
parent 3760967f59
commit f3aa3757ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: