Skip to content

Commit 840b440

Browse files
authored
Fix OneDrive upload service to support multiple files (home-assistant#168512)
1 parent 1943675 commit 840b440

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

homeassistant/components/onedrive/services.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ upload:
66
config_entry:
77
integration: onedrive
88
filename:
9-
required: false
9+
required: true
1010
selector:
11-
object:
11+
text:
12+
multiple: true
1213
destination_folder:
1314
required: true
1415
selector:

homeassistant/components/onedrive/strings.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,24 +143,24 @@
143143
},
144144
"services": {
145145
"upload": {
146-
"description": "Uploads files to OneDrive.",
146+
"description": "Uploads one or more files to OneDrive.",
147147
"fields": {
148148
"config_entry_id": {
149149
"description": "The config entry representing the OneDrive you want to upload to.",
150150
"name": "Config entry ID"
151151
},
152152
"destination_folder": {
153-
"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.",
153+
"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.",
154154
"example": "photos/snapshots",
155155
"name": "Destination folder"
156156
},
157157
"filename": {
158-
"description": "Path to the file to upload.",
158+
"description": "One or more paths to files to upload.",
159159
"example": "{example_image_path}",
160-
"name": "Filename"
160+
"name": "Filenames"
161161
}
162162
},
163-
"name": "Upload file"
163+
"name": "Upload files"
164164
}
165165
}
166166
}

0 commit comments

Comments
 (0)