Fix OneDrive upload service to support multiple files (#168512)

This commit is contained in:
Leonardo Rivera
2026-04-22 04:11:27 -03:00
committed by GitHub
parent 1943675a64
commit 840b44039d
2 changed files with 8 additions and 7 deletions

View File

@@ -6,9 +6,10 @@ upload:
config_entry:
integration: onedrive
filename:
required: false
required: true
selector:
object:
text:
multiple: true
destination_folder:
required: true
selector:

View File

@@ -143,24 +143,24 @@
},
"services": {
"upload": {
"description": "Uploads files to OneDrive.",
"description": "Uploads one or more files to OneDrive.",
"fields": {
"config_entry_id": {
"description": "The config entry representing the OneDrive you want to upload to.",
"name": "Config entry ID"
},
"destination_folder": {
"description": "Folder inside the Home Assistant app folder (Apps/Home Assistant) you want to upload the file to. Will be created if it does not exist.",
"description": "Folder inside the Home Assistant app folder (Apps/Home Assistant) you want to upload the files to. Will be created if it does not exist.",
"example": "photos/snapshots",
"name": "Destination folder"
},
"filename": {
"description": "Path to the file to upload.",
"description": "One or more paths to files to upload.",
"example": "{example_image_path}",
"name": "Filename"
"name": "Filenames"
}
},
"name": "Upload file"
"name": "Upload files"
}
}
}