Migrate automation services to support translations (#96306)
* Migrate automation services to support translations * Apply suggestions from code review Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
2330af82a5
commit
bde7d734b5
2 changed files with 34 additions and 14 deletions
|
@ -1,46 +1,32 @@
|
|||
# Describes the format for available automation services
|
||||
turn_on:
|
||||
name: Turn on
|
||||
description: Enable an automation.
|
||||
target:
|
||||
entity:
|
||||
domain: automation
|
||||
|
||||
turn_off:
|
||||
name: Turn off
|
||||
description: Disable an automation.
|
||||
target:
|
||||
entity:
|
||||
domain: automation
|
||||
fields:
|
||||
stop_actions:
|
||||
name: Stop actions
|
||||
description: Stop currently running actions.
|
||||
default: true
|
||||
selector:
|
||||
boolean:
|
||||
|
||||
toggle:
|
||||
name: Toggle
|
||||
description: Toggle (enable / disable) an automation.
|
||||
target:
|
||||
entity:
|
||||
domain: automation
|
||||
|
||||
trigger:
|
||||
name: Trigger
|
||||
description: Trigger the actions of an automation.
|
||||
target:
|
||||
entity:
|
||||
domain: automation
|
||||
fields:
|
||||
skip_condition:
|
||||
name: Skip conditions
|
||||
description: Whether or not the conditions will be skipped.
|
||||
default: true
|
||||
selector:
|
||||
boolean:
|
||||
|
||||
reload:
|
||||
name: Reload
|
||||
description: Reload the automation configuration.
|
||||
|
|
|
@ -44,5 +44,39 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"turn_on": {
|
||||
"name": "Turn on",
|
||||
"description": "Enables an automation."
|
||||
},
|
||||
"turn_off": {
|
||||
"name": "Turn off",
|
||||
"description": "Disables an automation.",
|
||||
"fields": {
|
||||
"stop_actions": {
|
||||
"name": "Stop actions",
|
||||
"description": "Stops currently running actions."
|
||||
}
|
||||
}
|
||||
},
|
||||
"toggle": {
|
||||
"name": "Toggle",
|
||||
"description": "Toggles (enable / disable) an automation."
|
||||
},
|
||||
"trigger": {
|
||||
"name": "Trigger",
|
||||
"description": "Triggers the actions of an automation.",
|
||||
"fields": {
|
||||
"skip_condition": {
|
||||
"name": "Skip conditions",
|
||||
"description": "Defines whether or not the conditions will be skipped."
|
||||
}
|
||||
}
|
||||
},
|
||||
"reload": {
|
||||
"name": "Reload",
|
||||
"description": "Reloads the automation configuration."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue