mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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
@ -1,46 +1,32 @@
|
|||||||
# Describes the format for available automation services
|
# Describes the format for available automation services
|
||||||
turn_on:
|
turn_on:
|
||||||
name: Turn on
|
|
||||||
description: Enable an automation.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: automation
|
domain: automation
|
||||||
|
|
||||||
turn_off:
|
turn_off:
|
||||||
name: Turn off
|
|
||||||
description: Disable an automation.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: automation
|
domain: automation
|
||||||
fields:
|
fields:
|
||||||
stop_actions:
|
stop_actions:
|
||||||
name: Stop actions
|
|
||||||
description: Stop currently running actions.
|
|
||||||
default: true
|
default: true
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
|
|
||||||
toggle:
|
toggle:
|
||||||
name: Toggle
|
|
||||||
description: Toggle (enable / disable) an automation.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: automation
|
domain: automation
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
name: Trigger
|
|
||||||
description: Trigger the actions of an automation.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: automation
|
domain: automation
|
||||||
fields:
|
fields:
|
||||||
skip_condition:
|
skip_condition:
|
||||||
name: Skip conditions
|
|
||||||
description: Whether or not the conditions will be skipped.
|
|
||||||
default: true
|
default: true
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
|
|
||||||
reload:
|
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…
x
Reference in New Issue
Block a user