Migrate homeassistant services to support translations#96388
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
| }, | ||
| "save_persistent_states": { | ||
| "name": "Save persistent states", | ||
| "description": "Saves the persistent states immediately. Maintains the normal periodic saving interval." |
There was a problem hiding this comment.
| "description": "Saves the persistent states immediately. Maintains the normal periodic saving interval." | |
| "description": "Saves the persistent states immediately. Maintains the normal periodic saving interval." |
What is this used for? Why would I enable this?
There was a problem hiding this comment.
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.
ah, it's like a save button. Thank you for explaining.
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
Proposed change
Migrates the homeassistant-provided services to support translated services.
More information, see: #95984
ℹ️ The contents of this PR has been scripted and migrated from source automatically. Afterward, tweaked it for consistency and used references.
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: