* add sensor platform to backup integration
* adjust namings, remove system integration flag
* add first simple test
* apply review comments
* fix test
* add sensor tests
* adjustements to use backup helper
* remove obsolet async_get_manager from init
* unsubscribe from events on entry unload
* add configuration_url
* fix doc string
* fix sensor tests
* mark async_unsubscribe as callback
* set integration_type service
* extend sensor test
* set integration_type on correct integration :)
* fix after online conflict resolution
* add sensor update tests
* simplify the sensor update tests
* avoid io during tests
* Add comment
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Don't allow creating backups if hass is not running
* Revert "Don't allow creating backups if hass is not running"
This reverts commit 1bf545eb25f20fc27fe161691a94531cba7e005c.
* Set backup manager to idle only after Home Assistant has started
* Update according to discussion, add tests
* Add more test
* Add backup helper
* Add hassio to stage 1
* Apply same changes to newly merged `webdav` and `azure_storage` to fix inflight conflict
* Address comments, add tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Show name of the backup agents in issue
* Show name of the backup agents in issue
* Update homeassistant/components/backup/manager.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix handling of renamed backup files in the core writer
* Adjust mocking
* Raise BackupAgentError instead of KeyError in get_backup_path
* Add specific error indicating backup not found
* Fix tests
* Ensure backups are loaded
* Fix tests
* Add support for per-backup agent encryption flag
* Adjust
* Don't attempt decrypting an unprotected backup
* Address review comments
* Add some tests
* Add fixture
* Rename fixture
* Correct condition for when we should encrypt or decrypt
* Update tests in integrations
* Improve test coverage
* Fix onedrive tests
* Add test
* Improve cipher worker shutdown
* Improve test coverage
* Fix google_drive tests
* Move inner class _CipherBackupStreamer._WorkerStatus to module scope
* Add backup endpoints to the onboarding integration
* Add backup as after dependency of onboarding
* Add test snapshots
* Fix stale docstrings
* Add utility function for getting the backup manager instance
* Return backup_id when uploading backup
* Change /api/onboarding/backup/restore to accept a JSON body
* Fix with_backup_manager
* Make the time for automated backups configurable
* Store time as a string, use None to indicate default time
* Don't add jitter if the time is set by user
* Include time of next automatic backup in response to backup/info
* Update tests
* Rename recurrence to state
* Include scheduled backup time in backup/config/info response
* Address review comments
* Update cloud test
* Add test for store migration
* Address review comments