-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Migrate homeassistant services to support translations #96388
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,88 +1,47 @@ | ||
| check_config: | ||
| name: Check configuration | ||
| description: | ||
| Check the Home Assistant configuration files for errors. Errors will be | ||
| displayed in the Home Assistant log. | ||
|
|
||
| reload_core_config: | ||
| name: Reload core configuration | ||
| description: Reload the core configuration. | ||
|
|
||
| restart: | ||
| name: Restart | ||
| description: Restart the Home Assistant service. | ||
|
|
||
| set_location: | ||
| name: Set location | ||
| description: Update the Home Assistant location. | ||
| fields: | ||
| latitude: | ||
| name: Latitude | ||
| description: Latitude of your location. | ||
| required: true | ||
| example: 32.87336 | ||
| selector: | ||
| text: | ||
| longitude: | ||
| name: Longitude | ||
| description: Longitude of your location. | ||
| required: true | ||
| example: 117.22743 | ||
| selector: | ||
| text: | ||
|
|
||
| stop: | ||
| name: Stop | ||
| description: Stop the Home Assistant service. | ||
|
|
||
| toggle: | ||
| name: Generic toggle | ||
| description: Generic service to toggle devices on/off under any domain | ||
| target: | ||
| entity: {} | ||
|
|
||
| turn_on: | ||
| name: Generic turn on | ||
| description: Generic service to turn devices on under any domain. | ||
| target: | ||
| entity: {} | ||
|
|
||
| turn_off: | ||
| name: Generic turn off | ||
| description: Generic service to turn devices off under any domain. | ||
| target: | ||
| entity: {} | ||
|
|
||
| update_entity: | ||
| name: Update entity | ||
| description: Force one or more entities to update its data | ||
| target: | ||
| entity: {} | ||
|
|
||
| reload_custom_templates: | ||
| name: Reload custom Jinja2 templates | ||
| description: >- | ||
| Reload Jinja2 templates found in the custom_templates folder in your config. | ||
| New values will be applied on the next render of the template. | ||
|
|
||
| reload_config_entry: | ||
| name: Reload config entry | ||
| description: Reload a config entry that matches a target. | ||
| target: | ||
| entity: {} | ||
| device: {} | ||
| fields: | ||
| entry_id: | ||
| advanced: true | ||
| name: Config entry id | ||
| description: A configuration entry id | ||
| required: false | ||
| example: 8955375327824e14ba89e4b29cc3ec9a | ||
| selector: | ||
| text: | ||
|
|
||
| save_persistent_states: | ||
| name: Save Persistent States | ||
| description: | ||
| Save the persistent states (for entities derived from RestoreEntity) immediately. | ||
| Maintain the normal periodic saving interval. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this used for? Why would I enable this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't enabling anything, it trigger a save to disk of the states immediately. Normally, this runs on a schedule / interval. This service allows you to request one now, instead awaiting the next interval to hit.
The interval isn't interrupted or changed, it will continue. So this is an extra way to force a save of states right now.
This is not something regular users use, but because HA saves every X seconds, it means that if HA crashes, it could loose X seconds of data that wasn't saved yet. This allows an user to force a save right now, in case they have received state data they want to secure to disk as soon as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, it's like a save button. Thank you for explaining.