* 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 1bf545eb25.
* 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
* Support decrypting backups when downloading
* Close stream
* Use test helper
* Wait for worker to finish
* Simplify
* Update backup.json
* Simplify
* Revert change from the future
* Log out BackupAgentError
* Update homeassistant/components/backup/manager.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/backup/manager.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Format
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add backup manager and read writer errors
* Clean up not needed default argument
* Clean up todo comment
* Trap agent bugs during upload
* Always release stream
* Clean up leftover
* Update test for backup with automatic settings
* Fix use of vol.Any
* Refactor test helper
* Only update successful timestamp if completed event is sent
* Always delete surplus copies
* Fix after rebase
* Fix after rebase
* Revert "Fix use of vol.Any"
This reverts commit 28fd7a544899bb6ed05f771e9e608bc5b41d2b5e.
* Inherit BackupReaderWriterError in IncorrectPasswordError
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Adjust backup agent platform
* Adjust according to discussion
* Clean up the local agent dict too
* Add test
* Update kitchen_sink
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adjust tests
* Clean up
* Fix kitchen sink reload
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>