mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17: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:
|
select_first:
|
||||||
name: First
|
|
||||||
description: Select the first option of an select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: select
|
domain: select
|
||||||
|
|
||||||
select_last:
|
select_last:
|
||||||
name: Last
|
|
||||||
description: Select the last option of an select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: select
|
domain: select
|
||||||
|
|
||||||
select_next:
|
select_next:
|
||||||
name: Next
|
|
||||||
description: Select the next options of an select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: select
|
domain: 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 select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: select
|
domain: 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 select entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: select
|
domain: 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:
|
||||||
|
@ -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