mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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(
|
||||
hass: HomeAssistant, filenames: list[str]
|
||||
) -> list[tuple[str, bytes]]:
|
||||
"""Read the mime type and contents from each filen."""
|
||||
"""Return the mime types and file contents for each file."""
|
||||
results = []
|
||||
for filename in filenames:
|
||||
if not hass.config.is_allowed_path(filename):
|
||||
|
Loading…
x
Reference in New Issue
Block a user