mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Migrate script services to support translations (#96401)
This commit is contained in:
parent
cbddade4bf
commit
6a1cd628aa
@ -1,26 +1,17 @@
|
|||||||
# Describes the format for available python_script services
|
# Describes the format for available python_script services
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
name: Reload
|
|
||||||
description: Reload all the available scripts
|
|
||||||
|
|
||||||
turn_on:
|
turn_on:
|
||||||
name: Turn on
|
|
||||||
description: Turn on script
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: script
|
domain: script
|
||||||
|
|
||||||
turn_off:
|
turn_off:
|
||||||
name: Turn off
|
|
||||||
description: Turn off script
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: script
|
domain: script
|
||||||
|
|
||||||
toggle:
|
toggle:
|
||||||
name: Toggle
|
|
||||||
description: Toggle script
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: script
|
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…
x
Reference in New Issue
Block a user