Skip to content

Commit

Permalink
Fix missing apostrophe in smtp (#105189)
Browse files Browse the repository at this point in the history
Fix missing apostrophe
  • Loading branch information
lunmay committed Dec 7, 2023
1 parent 05e122e commit 16f6a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/smtp/notify.py
Expand Up @@ -263,8 +263,8 @@ def _attach_file(hass, atch_name, content_id=""):
file_name = os.path.basename(atch_name)
url = "https://www.home-assistant.io/docs/configuration/basic/"
raise ServiceValidationError(
f"Cannot send email with attachment '{file_name} "
f"from directory '{file_path} which is not secure to load data from. "
f"Cannot send email with attachment '{file_name}' "
f"from directory '{file_path}' which is not secure to load data from. "
f"Only folders added to `{allow_list}` are accessible. "
f"See {url} for more information.",
translation_domain=DOMAIN,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/smtp/strings.json
Expand Up @@ -7,7 +7,7 @@
},
"exceptions": {
"remote_path_not_allowed": {
"message": "Cannot send email with attachment '{file_name} form directory '{file_path} which is not secure to load data from. Only folders added to `{allow_list}` are accessible. See {url} for more information."
"message": "Cannot send email with attachment '{file_name}' form directory '{file_path}' which is not secure to load data from. Only folders added to `{allow_list}` are accessible. See {url} for more information."
}
}
}

0 comments on commit 16f6a57

Please sign in to comment.