Migrate script services to support translations (#96401)

pull/96480/head
Franck Nijhof 2023-07-12 13:45:38 +02:00 committed by GitHub
parent cbddade4bf
commit 6a1cd628aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 9 deletions

View File

@ -1,26 +1,17 @@
# Describes the format for available python_script services
reload:
name: Reload
description: Reload all the available scripts
turn_on:
name: Turn on
description: Turn on script
target:
entity:
domain: script
turn_off:
name: Turn off
description: Turn off script
target:
entity:
domain: script
toggle:
name: Toggle
description: Toggle script
target:
entity:
domain: script

View File

@ -31,5 +31,23 @@
}
}
}
},
"services": {
"reload": {
"name": "Reload",
"description": "Reloads all the available scripts."
},
"turn_on": {
"name": "Turn on",
"description": "Runs the sequence of actions defined in a script."
},
"turn_off": {
"name": "Turn off",
"description": "Stops a running script."
},
"toggle": {
"name": "Toggle",
"description": "Toggle a script. Starts it, if isn't running, stops it otherwise."
}
}
}