mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 12:08:19 +00:00
parent
c035ffb06e
commit
688fab49c3
@ -263,8 +263,8 @@ def _attach_file(hass, atch_name, content_id=""):
|
|||||||
file_name = os.path.basename(atch_name)
|
file_name = os.path.basename(atch_name)
|
||||||
url = "https://www.home-assistant.io/docs/configuration/basic/"
|
url = "https://www.home-assistant.io/docs/configuration/basic/"
|
||||||
raise ServiceValidationError(
|
raise ServiceValidationError(
|
||||||
f"Cannot send email with attachment '{file_name} "
|
f"Cannot send email with attachment '{file_name}' "
|
||||||
f"from directory '{file_path} which is not secure to load data from. "
|
f"from directory '{file_path}' which is not secure to load data from. "
|
||||||
f"Only folders added to `{allow_list}` are accessible. "
|
f"Only folders added to `{allow_list}` are accessible. "
|
||||||
f"See {url} for more information.",
|
f"See {url} for more information.",
|
||||||
translation_domain=DOMAIN,
|
translation_domain=DOMAIN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user