mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Migrate input helpers services to support translations (#96392)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
b39660df3b
commit
d6771e6f8a
@ -1,24 +1,16 @@
|
|||||||
toggle:
|
toggle:
|
||||||
name: Toggle
|
|
||||||
description: Toggle an input boolean
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_boolean
|
domain: input_boolean
|
||||||
|
|
||||||
turn_off:
|
turn_off:
|
||||||
name: Turn off
|
|
||||||
description: Turn off an input boolean
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_boolean
|
domain: input_boolean
|
||||||
|
|
||||||
turn_on:
|
turn_on:
|
||||||
name: Turn on
|
|
||||||
description: Turn on an input boolean
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_boolean
|
domain: input_boolean
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
name: Reload
|
|
||||||
description: Reload the input_boolean configuration
|
|
||||||
|
@ -17,5 +17,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"toggle": {
|
||||||
|
"name": "Toggle",
|
||||||
|
"description": "Toggles the helper on/off."
|
||||||
|
},
|
||||||
|
"turn_off": {
|
||||||
|
"name": "Turn off",
|
||||||
|
"description": "Turns off the helper."
|
||||||
|
},
|
||||||
|
"turn_on": {
|
||||||
|
"name": "Turn on",
|
||||||
|
"description": "Turns on the helper."
|
||||||
|
},
|
||||||
|
"reload": {
|
||||||
|
"name": "Reload",
|
||||||
|
"description": "Reloads helpers from the YAML-configuration."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
press:
|
press:
|
||||||
name: Press
|
|
||||||
description: Press the input button entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_button
|
domain: input_button
|
||||||
|
@ -13,5 +13,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"press": {
|
||||||
|
"name": "Press",
|
||||||
|
"description": "Mimics the physical button press on the device."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,33 +1,21 @@
|
|||||||
set_datetime:
|
set_datetime:
|
||||||
name: Set
|
|
||||||
description: This can be used to dynamically set the date and/or time.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_datetime
|
domain: input_datetime
|
||||||
fields:
|
fields:
|
||||||
date:
|
date:
|
||||||
name: Date
|
|
||||||
description: The target date the entity should be set to.
|
|
||||||
example: '"2019-04-20"'
|
example: '"2019-04-20"'
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
time:
|
time:
|
||||||
name: Time
|
|
||||||
description: The target time the entity should be set to.
|
|
||||||
example: '"05:04:20"'
|
example: '"05:04:20"'
|
||||||
selector:
|
selector:
|
||||||
time:
|
time:
|
||||||
datetime:
|
datetime:
|
||||||
name: Date & Time
|
|
||||||
description: The target date & time the entity should be set to.
|
|
||||||
example: '"2019-04-20 05:04:20"'
|
example: '"2019-04-20 05:04:20"'
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
timestamp:
|
timestamp:
|
||||||
name: Timestamp
|
|
||||||
description:
|
|
||||||
The target date & time the entity should be set to as expressed by a
|
|
||||||
UNIX timestamp.
|
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
min: 0
|
min: 0
|
||||||
@ -35,5 +23,3 @@ set_datetime:
|
|||||||
mode: box
|
mode: box
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
name: Reload
|
|
||||||
description: Reload the input_datetime configuration.
|
|
||||||
|
@ -34,5 +34,33 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_datetime": {
|
||||||
|
"name": "Set",
|
||||||
|
"description": "Sets the date and/or time.",
|
||||||
|
"fields": {
|
||||||
|
"date": {
|
||||||
|
"name": "Date",
|
||||||
|
"description": "The target date."
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"name": "Time",
|
||||||
|
"description": "The target time."
|
||||||
|
},
|
||||||
|
"datetime": {
|
||||||
|
"name": "Date & time",
|
||||||
|
"description": "The target date & time."
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"name": "Timestamp",
|
||||||
|
"description": "The target date & time, expressed by a UNIX timestamp."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"reload": {
|
||||||
|
"name": "Reload",
|
||||||
|
"description": "Reloads helpers from the YAML-configuration."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,19 @@
|
|||||||
decrement:
|
decrement:
|
||||||
name: Decrement
|
|
||||||
description: Decrement the value of an input number entity by its stepping.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_number
|
domain: input_number
|
||||||
|
|
||||||
increment:
|
increment:
|
||||||
name: Increment
|
|
||||||
description: Increment the value of an input number entity by its stepping.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_number
|
domain: input_number
|
||||||
|
|
||||||
set_value:
|
set_value:
|
||||||
name: Set
|
|
||||||
description: Set the value of an input number entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_number
|
domain: input_number
|
||||||
fields:
|
fields:
|
||||||
value:
|
value:
|
||||||
name: Value
|
|
||||||
description: The target value the entity should be set to.
|
|
||||||
required: true
|
required: true
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
@ -31,5 +23,3 @@ set_value:
|
|||||||
mode: box
|
mode: box
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
name: Reload
|
|
||||||
description: Reload the input_number configuration.
|
|
||||||
|
@ -33,5 +33,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"decrement": {
|
||||||
|
"name": "Decrement",
|
||||||
|
"description": "Decrements the current value by 1 step."
|
||||||
|
},
|
||||||
|
"increment": {
|
||||||
|
"name": "Increment",
|
||||||
|
"description": "Increments the value by 1 step."
|
||||||
|
},
|
||||||
|
"set_value": {
|
||||||
|
"name": "Set",
|
||||||
|
"description": "Sets the value.",
|
||||||
|
"fields": {
|
||||||
|
"value": {
|
||||||
|
"name": "Value",
|
||||||
|
"description": "The target value."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"reload": {
|
||||||
|
"name": "Reload",
|
||||||
|
"description": "Reloads helpers from the YAML-configuration."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,75 +1,53 @@
|
|||||||
select_next:
|
select_next:
|
||||||
name: Next
|
|
||||||
description: Select the next options of an input select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_select
|
domain: input_select
|
||||||
fields:
|
fields:
|
||||||
cycle:
|
cycle:
|
||||||
name: Cycle
|
|
||||||
description: If the option should cycle from the last to the first.
|
|
||||||
default: true
|
default: true
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
|
|
||||||
select_option:
|
select_option:
|
||||||
name: Select
|
|
||||||
description: Select an option of an input select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_select
|
domain: input_select
|
||||||
fields:
|
fields:
|
||||||
option:
|
option:
|
||||||
name: Option
|
|
||||||
description: Option to be selected.
|
|
||||||
required: true
|
required: true
|
||||||
example: '"Item A"'
|
example: '"Item A"'
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
|
||||||
select_previous:
|
select_previous:
|
||||||
name: Previous
|
|
||||||
description: Select the previous options of an input select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_select
|
domain: input_select
|
||||||
fields:
|
fields:
|
||||||
cycle:
|
cycle:
|
||||||
name: Cycle
|
|
||||||
description: If the option should cycle from the first to the last.
|
|
||||||
default: true
|
default: true
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
|
|
||||||
select_first:
|
select_first:
|
||||||
name: First
|
|
||||||
description: Select the first option of an input select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_select
|
domain: input_select
|
||||||
|
|
||||||
select_last:
|
select_last:
|
||||||
name: Last
|
|
||||||
description: Select the last option of an input select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_select
|
domain: input_select
|
||||||
|
|
||||||
set_options:
|
set_options:
|
||||||
name: Set options
|
|
||||||
description: Set the options of an input select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_select
|
domain: input_select
|
||||||
fields:
|
fields:
|
||||||
options:
|
options:
|
||||||
name: Options
|
|
||||||
description: Options for the input select entity.
|
|
||||||
required: true
|
required: true
|
||||||
example: '["Item A", "Item B", "Item C"]'
|
example: '["Item A", "Item B", "Item C"]'
|
||||||
selector:
|
selector:
|
||||||
object:
|
object:
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
name: Reload
|
|
||||||
description: Reload the input_select configuration.
|
|
||||||
|
@ -16,5 +16,59 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"select_next": {
|
||||||
|
"name": "Next",
|
||||||
|
"description": "Select the next option.",
|
||||||
|
"fields": {
|
||||||
|
"cycle": {
|
||||||
|
"name": "Cycle",
|
||||||
|
"description": "If the option should cycle from the last to the first option on the list."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"select_option": {
|
||||||
|
"name": "Select",
|
||||||
|
"description": "Selects an option.",
|
||||||
|
"fields": {
|
||||||
|
"option": {
|
||||||
|
"name": "Option",
|
||||||
|
"description": "Option to be selected."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"select_previous": {
|
||||||
|
"name": "Previous",
|
||||||
|
"description": "Selects the previous option.",
|
||||||
|
"fields": {
|
||||||
|
"cycle": {
|
||||||
|
"name": "[%key:component::input_select::services::select_next::fields::cycle::name%]",
|
||||||
|
"description": "[%key:component::input_select::services::select_next::fields::cycle::description%]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"select_first": {
|
||||||
|
"name": "First",
|
||||||
|
"description": "Selects the first option."
|
||||||
|
},
|
||||||
|
"select_last": {
|
||||||
|
"name": "Last",
|
||||||
|
"description": "Selects the last option."
|
||||||
|
},
|
||||||
|
"set_options": {
|
||||||
|
"name": "Set options",
|
||||||
|
"description": "Sets the options.",
|
||||||
|
"fields": {
|
||||||
|
"options": {
|
||||||
|
"name": "Options",
|
||||||
|
"description": "List of options."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"reload": {
|
||||||
|
"name": "Reload",
|
||||||
|
"description": "Reloads helpers from the YAML-configuration."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,12 @@
|
|||||||
set_value:
|
set_value:
|
||||||
name: Set
|
|
||||||
description: Set the value of an input text entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: input_text
|
domain: input_text
|
||||||
fields:
|
fields:
|
||||||
value:
|
value:
|
||||||
name: Value
|
|
||||||
description: The target value the entity should be set to.
|
|
||||||
required: true
|
required: true
|
||||||
example: This is an example text
|
example: This is an example text
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
name: Reload
|
|
||||||
description: Reload the input_text configuration.
|
|
||||||
|
@ -29,5 +29,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_value": {
|
||||||
|
"name": "Set",
|
||||||
|
"description": "Sets the value.",
|
||||||
|
"fields": {
|
||||||
|
"value": {
|
||||||
|
"name": "Value",
|
||||||
|
"description": "The target value."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"reload": {
|
||||||
|
"name": "Reload",
|
||||||
|
"description": "Reloads helpers from the YAML-configuration."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user