-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Migrate input helpers services to support translations #96392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,16 @@ | ||
| toggle: | ||
| name: Toggle | ||
| description: Toggle an input boolean | ||
| target: | ||
| entity: | ||
| domain: input_boolean | ||
|
|
||
| turn_off: | ||
| name: Turn off | ||
| description: Turn off an input boolean | ||
| target: | ||
| entity: | ||
| domain: input_boolean | ||
|
|
||
| turn_on: | ||
| name: Turn on | ||
| description: Turn on an input boolean | ||
| target: | ||
| entity: | ||
| domain: input_boolean | ||
|
|
||
| reload: | ||
| name: Reload | ||
| description: Reload the input_boolean configuration |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| press: | ||
| name: Press | ||
| description: Press the input button entity. | ||
| target: | ||
| entity: | ||
| domain: input_button |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,25 @@ | ||
| set_datetime: | ||
| name: Set | ||
| description: This can be used to dynamically set the date and/or time. | ||
| target: | ||
| entity: | ||
| domain: input_datetime | ||
| fields: | ||
| date: | ||
| name: Date | ||
| description: The target date the entity should be set to. | ||
| example: '"2019-04-20"' | ||
| selector: | ||
| text: | ||
| time: | ||
| name: Time | ||
| description: The target time the entity should be set to. | ||
| example: '"05:04:20"' | ||
| selector: | ||
| time: | ||
| datetime: | ||
| name: Date & Time | ||
| description: The target date & time the entity should be set to. | ||
| example: '"2019-04-20 05:04:20"' | ||
| selector: | ||
| text: | ||
| timestamp: | ||
| name: Timestamp | ||
| description: | ||
| The target date & time the entity should be set to as expressed by a | ||
| UNIX timestamp. | ||
| selector: | ||
| number: | ||
| min: 0 | ||
| max: 9223372036854775807 | ||
| mode: box | ||
|
|
||
| reload: | ||
| name: Reload | ||
| description: Reload the input_datetime configuration. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,75 +1,53 @@ | ||
| select_next: | ||
| name: Next | ||
| description: Select the next options of an input select entity. | ||
| target: | ||
| entity: | ||
| domain: input_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 input select entity. | ||
| target: | ||
| entity: | ||
| domain: input_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 input select entity. | ||
| target: | ||
| entity: | ||
| domain: input_select | ||
| fields: | ||
| cycle: | ||
| name: Cycle | ||
| description: If the option should cycle from the first to the last. | ||
| default: true | ||
| selector: | ||
| boolean: | ||
|
|
||
| select_first: | ||
| name: First | ||
| description: Select the first option of an input select entity. | ||
| target: | ||
| entity: | ||
| domain: input_select | ||
|
|
||
| select_last: | ||
| name: Last | ||
| description: Select the last option of an input select entity. | ||
| target: | ||
| entity: | ||
| domain: input_select | ||
|
|
||
| set_options: | ||
| name: Set options | ||
| description: Set the options of an input select entity. | ||
| target: | ||
| entity: | ||
| domain: input_select | ||
| fields: | ||
| options: | ||
| name: Options | ||
| description: Options for the input select entity. | ||
| required: true | ||
| example: '["Item A", "Item B", "Item C"]' | ||
| selector: | ||
| object: | ||
|
|
||
| reload: | ||
| name: Reload | ||
| description: Reload the input_select configuration. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,5 +16,59 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "services": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think pretty much all of these we can get from
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably same for all the others here that have a "matching" entity component
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will de-dupe more later using scripts. |
||
| "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." | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,12 @@ | ||
| set_value: | ||
| name: Set | ||
| description: Set the value of an input text entity. | ||
| target: | ||
| entity: | ||
| domain: input_text | ||
| fields: | ||
| value: | ||
| name: Value | ||
| description: The target value the entity should be set to. | ||
| required: true | ||
| example: This is an example text | ||
| selector: | ||
| text: | ||
|
|
||
| reload: | ||
| name: Reload | ||
| description: Reload the input_text configuration. |
Uh oh!
There was an error while loading. Please reload this page.