Apply suggestions from code review

Co-authored-by: Norbert Rittel <norbert@rittel.de>
This commit is contained in:
Michael
2025-06-22 20:32:39 +02:00
committed by GitHub
parent b26f011a36
commit 301dfeb07e

View File

@@ -73,26 +73,26 @@
"services": { "services": {
"upload_file": { "upload_file": {
"name": "Upload file", "name": "Upload file",
"description": "Upload a file to your Immich instance.", "description": "Uploads a file to your Immich instance.",
"fields": { "fields": {
"config_entry_id": { "config_entry_id": {
"name": "Immich instance", "name": "Immich instance",
"description": "Select the Immich instance where to upload the file." "description": "The Immich instance where to upload the file."
}, },
"file": { "file": {
"name": "File", "name": "File",
"description": "The path to the file to be uploaded." "description": "The path to the file to be uploaded."
}, },
"album_id": { "album_id": {
"name": "Album id", "name": "Album ID",
"description": "The album where to put the file in after upload." "description": "The album in which the file should be placed after uploading."
} }
} }
} }
}, },
"exceptions": { "exceptions": {
"config_entry_not_found": { "config_entry_not_found": {
"message": "Failed to perform action \"{service}\". Config entry not found" "message": "Failed to perform action \"{service}\". Config entry not found."
}, },
"config_entry_not_loaded": { "config_entry_not_loaded": {
"message": "Failed to perform action \"{service}\". Config entry not loaded." "message": "Failed to perform action \"{service}\". Config entry not loaded."
@@ -101,7 +101,7 @@
"message": "Failed to perform action \"{service}\". File `{file}` not found." "message": "Failed to perform action \"{service}\". File `{file}` not found."
}, },
"album_not_found": { "album_not_found": {
"message": "Failed to perform action \"{service}\". Album with id `{album_id}` not found ({error})." "message": "Failed to perform action \"{service}\". Album with ID `{album_id}` not found ({error})."
}, },
"upload_failed": { "upload_failed": {
"message": "Failed to perform action \"{service}\". Upload of file `{file}` failed ({error})." "message": "Failed to perform action \"{service}\". Upload of file `{file}` failed ({error})."