Clarify comment in google photos upload service (#125042)

This commit is contained in:
Allen Porter
2024-09-01 21:49:38 -07:00
committed by GitHub
parent 99f43400bf
commit 9fff3a13a5

View File

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