Migrate script services to support translations (#96401)
parent
cbddade4bf
commit
6a1cd628aa
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue