mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Migrate select services to support translations (#96411)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
c67a1a326f
commit
7021daf9fb
@ -1,56 +1,40 @@
|
||||
select_first:
|
||||
name: First
|
||||
description: Select the first option of an select entity.
|
||||
target:
|
||||
entity:
|
||||
domain: select
|
||||
|
||||
select_last:
|
||||
name: Last
|
||||
description: Select the last option of an select entity.
|
||||
target:
|
||||
entity:
|
||||
domain: select
|
||||
|
||||
select_next:
|
||||
name: Next
|
||||
description: Select the next options of an select entity.
|
||||
target:
|
||||
entity:
|
||||
domain: select
|
||||
fields:
|
||||
cycle:
|
||||
name: Cycle
|
||||
description: If the option should cycle from the last to the first.
|
||||
default: true
|
||||
selector:
|
||||
boolean:
|
||||
|
||||
select_option:
|
||||
name: Select
|
||||
description: Select an option of an select entity.
|
||||
target:
|
||||
entity:
|
||||
domain: select
|
||||
fields:
|
||||
option:
|
||||
name: Option
|
||||
description: Option to be selected.
|
||||
required: true
|
||||
example: '"Item A"'
|
||||
selector:
|
||||
text:
|
||||
|
||||
select_previous:
|
||||
name: Previous
|
||||
description: Select the previous options of an select entity.
|
||||
target:
|
||||
entity:
|
||||
domain: select
|
||||
fields:
|
||||
cycle:
|
||||
name: Cycle
|
||||
description: If the option should cycle from the first to the last.
|
||||
default: true
|
||||
selector:
|
||||
boolean:
|
||||
|
@ -24,5 +24,45 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"select_first": {
|
||||
"name": "First",
|
||||
"description": "Selects the first option."
|
||||
},
|
||||
"select_last": {
|
||||
"name": "Last",
|
||||
"description": "Selects the last option."
|
||||
},
|
||||
"select_next": {
|
||||
"name": "Next",
|
||||
"description": "Selects the next option.",
|
||||
"fields": {
|
||||
"cycle": {
|
||||
"name": "Cycle",
|
||||
"description": "If the option should cycle from the last to the first."
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "Cycle",
|
||||
"description": "If the option should cycle from the first to the last."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user