mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add selectors to Downloader service definitions (#46638)
This commit is contained in:
parent
c8c3ce4172
commit
4e93a0c774
@ -1,15 +1,28 @@
|
|||||||
download_file:
|
download_file:
|
||||||
description: Downloads a file to the download location.
|
description: Downloads a file to the download location
|
||||||
fields:
|
fields:
|
||||||
url:
|
url:
|
||||||
|
name: URL
|
||||||
description: The URL of the file to download.
|
description: The URL of the file to download.
|
||||||
|
required: true
|
||||||
example: "http://example.org/myfile"
|
example: "http://example.org/myfile"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
subdir:
|
subdir:
|
||||||
|
name: Subdirectory
|
||||||
description: Download into subdirectory.
|
description: Download into subdirectory.
|
||||||
example: "download_dir"
|
example: "download_dir"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
filename:
|
filename:
|
||||||
|
name: Filename
|
||||||
description: Determine the filename.
|
description: Determine the filename.
|
||||||
example: "my_file_name"
|
example: "my_file_name"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
overwrite:
|
overwrite:
|
||||||
|
name: Overwrite
|
||||||
description: Whether to overwrite the file or not.
|
description: Whether to overwrite the file or not.
|
||||||
example: "false"
|
default: false
|
||||||
|
selector:
|
||||||
|
boolean:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user