Migrate update services to support translations (#96395)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
pull/96693/head
Franck Nijhof 2023-07-12 16:59:45 +02:00 committed by GitHub
parent e513b7d0eb
commit c5cd7e5897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 10 deletions

View File

@ -1,34 +1,24 @@
install:
name: Install update
description: Install an update for this device or service
target:
entity:
domain: update
fields:
version:
name: Version
description: Version to install, if omitted, the latest version will be installed.
required: false
example: "1.0.0"
selector:
text:
backup:
name: Backup
description: Backup before installing the update, if supported by the integration.
required: false
selector:
boolean:
skip:
name: Skip update
description: Mark currently available update as skipped.
target:
entity:
domain: update
clear_skipped:
name: Clear skipped update
description: Removes the skipped version marker from an update.
target:
entity:
domain: update

View File

@ -14,5 +14,29 @@
"firmware": {
"name": "Firmware"
}
},
"services": {
"install": {
"name": "Install update",
"description": "Installs an update for this device or service.",
"fields": {
"version": {
"name": "Version",
"description": "The version to install. If omitted, the latest version will be installed."
},
"backup": {
"name": "Backup",
"description": "If supported by the integration, this creates a backup before starting the update ."
}
}
},
"skip": {
"name": "Skip update",
"description": "Marks currently available update as skipped."
},
"clear_skipped": {
"name": "Clear skipped update",
"description": "Removes the skipped version marker from an update."
}
}
}