mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add selectors to Browser, Recorder, Shopping List service definitions (#46749)
This commit is contained in:
parent
208af0367a
commit
8b69608242
@ -1,6 +1,11 @@
|
|||||||
browse_url:
|
browse_url:
|
||||||
description: Open a URL in the default browser on the host machine of Home Assistant.
|
description:
|
||||||
|
Open a URL in the default browser on the host machine of Home Assistant
|
||||||
fields:
|
fields:
|
||||||
url:
|
url:
|
||||||
|
name: URL
|
||||||
description: The URL to open.
|
description: The URL to open.
|
||||||
|
required: true
|
||||||
example: "https://www.home-assistant.io"
|
example: "https://www.home-assistant.io"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
@ -1,11 +1,25 @@
|
|||||||
# Describes the format for available recorder services
|
# Describes the format for available recorder services
|
||||||
|
|
||||||
purge:
|
purge:
|
||||||
description: Start purge task - delete events and states older than x days, according to keep_days service data.
|
description: Start purge task - to clean up old data from your database
|
||||||
fields:
|
fields:
|
||||||
keep_days:
|
keep_days:
|
||||||
description: Number of history days to keep in database after purge. Value >= 0.
|
name: Days to keep
|
||||||
|
description: Number of history days to keep in database after purge.
|
||||||
example: 2
|
example: 2
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: 0
|
||||||
|
max: 365
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: days
|
||||||
|
mode: slider
|
||||||
|
|
||||||
repack:
|
repack:
|
||||||
description: Attempt to save disk space by rewriting the entire database file.
|
name: Repack
|
||||||
|
description:
|
||||||
|
Attempt to save disk space by rewriting the entire database file.
|
||||||
example: true
|
example: true
|
||||||
|
default: false
|
||||||
|
selector:
|
||||||
|
boolean:
|
||||||
|
@ -1,12 +1,21 @@
|
|||||||
add_item:
|
add_item:
|
||||||
description: Adds an item to the shopping list.
|
description: Adds an item to the shopping list
|
||||||
fields:
|
fields:
|
||||||
name:
|
name:
|
||||||
|
name: Name
|
||||||
description: The name of the item to add.
|
description: The name of the item to add.
|
||||||
|
required: true
|
||||||
example: Beer
|
example: Beer
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
|
||||||
complete_item:
|
complete_item:
|
||||||
description: Marks an item as completed in the shopping list. It does not remove the item.
|
description: Marks an item as completed in the shopping list.
|
||||||
fields:
|
fields:
|
||||||
name:
|
name:
|
||||||
description: The name of the item to mark as completed.
|
name: Name
|
||||||
|
description: The name of the item to mark as completed (without removing).
|
||||||
|
required: true
|
||||||
example: Beer
|
example: Beer
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user