From 364edbfd8a80b4e24df4c9ec23df129e240a8a16 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 6 Sep 2021 10:27:11 +0200 Subject: [PATCH] Add service descriptions for supervisor backup restore services (#52766) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add service descriptions for supervisor backup restore * Add fields to restore services * Update homeassistant/components/hassio/services.yaml Co-authored-by: Joakim Sørensen Co-authored-by: Joakim Sørensen --- homeassistant/components/hassio/services.yaml | 54 ++++++++++++++++--- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/hassio/services.yaml b/homeassistant/components/hassio/services.yaml index 38d78984ddc..3e5736c3593 100644 --- a/homeassistant/components/hassio/services.yaml +++ b/homeassistant/components/hassio/services.yaml @@ -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: