mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Clarify comment in google photos upload service (#125042)
This commit is contained in:
parent
99f43400bf
commit
9fff3a13a5
@ -42,7 +42,7 @@ UPLOAD_SERVICE_SCHEMA = vol.Schema(
|
|||||||
def _read_file_contents(
|
def _read_file_contents(
|
||||||
hass: HomeAssistant, filenames: list[str]
|
hass: HomeAssistant, filenames: list[str]
|
||||||
) -> list[tuple[str, bytes]]:
|
) -> list[tuple[str, bytes]]:
|
||||||
"""Read the mime type and contents from each filen."""
|
"""Return the mime types and file contents for each file."""
|
||||||
results = []
|
results = []
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if not hass.config.is_allowed_path(filename):
|
if not hass.config.is_allowed_path(filename):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user