Add service descriptions for supervisor backup restore services (#52766)

* Add service descriptions for supervisor backup restore

* Add fields to restore services

* Update homeassistant/components/hassio/services.yaml

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>

Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
Philip Allgaier 2021-09-06 10:27:11 +02:00 committed by GitHub
parent 755835ee2e
commit 364edbfd8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 8 deletions

View File

@ -72,8 +72,8 @@ snapshot_full:
fields:
name:
name: Name
description: Optional or it will be the current date and time.
example: "backup 1"
description: Optional (default = current date and time).
example: "Backup 1"
selector:
text:
password:
@ -89,7 +89,7 @@ snapshot_partial:
fields:
addons:
name: Add-ons
description: Optional list of addon slugs.
description: Optional list of add-on slugs.
example: ["core_ssh", "core_samba", "core_mosquitto"]
selector:
object:
@ -101,7 +101,7 @@ snapshot_partial:
object:
name:
name: Name
description: Optional or it will be the current date and time.
description: Optional (default = current date and time).
example: "Partial backup 1"
selector:
text:
@ -118,8 +118,8 @@ backup_full:
fields:
name:
name: Name
description: Optional or it will be the current date and time.
example: "backup 1"
description: Optional (default = current date and time).
example: "Backup 1"
selector:
text:
password:
@ -135,7 +135,7 @@ backup_partial:
fields:
addons:
name: Add-ons
description: Optional list of addon slugs.
description: Optional list of add-on slugs.
example: ["core_ssh", "core_samba", "core_mosquitto"]
selector:
object:
@ -147,7 +147,7 @@ backup_partial:
object:
name:
name: Name
description: Optional or it will be the current date and time.
description: Optional (default = current date and time).
example: "Partial backup 1"
selector:
text:
@ -157,3 +157,41 @@ backup_partial:
example: "password"
selector:
text:
restore_full:
name: Restore from full backup.
description: Restore from full backup.
fields:
slug:
name: Slug
description: Slug of backup to restore from.
selector:
text:
password:
name: Password
description: Optional password.
example: "password"
selector:
text:
restore_partial:
name: Restore from partial backup.
description: Restore from partial backup.
fields:
homeassistant:
name: Home Assistant settings
description: Restore Home Assistant
selector:
boolean:
folders:
name: Folders
description: Optional list of directories.
example: ["homeassistant", "share"]
selector:
object:
addons:
name: Add-ons
description: Optional list of add-on slugs.
example: ["core_ssh", "core_samba", "core_mosquitto"]
selector:
object: