epenet and GitHub
0c4bc95bdd
Migrate base entity attributes to StrEnum ( #174633 )
2026-06-24 15:38:49 +01:00
epenet and GitHub
1917a007f8
Migrate event entity attributes to StrEnum ( #174592 )
2026-06-24 09:56:20 +02:00
epenet and GitHub
f9bf7ab122
Migrate sensor entity attributes to StrEnum ( #174595 )
2026-06-24 09:05:32 +02:00
Artur Pragacz and GitHub
bafef2065f
Rework user-given entity name logic ( #162763 )
2026-03-17 11:09:20 +01:00
2eb65ab314
Buffer backup upload progress events ( #165249 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2026-03-11 17:29:35 +01:00
Erik Montnemery and GitHub
40e2f79e60
Add support for reading backups using securetar v3 ( #163920 )
2026-02-24 14:23:00 +01:00
Erik Montnemery and GitHub
e16a8ed20e
Don't mock out filesystem operations in backup tests ( #162877 )
2026-02-13 21:39:34 +01:00
Artur Pragacz and GitHub
0130919128
Improve entity id generation ( #160302 )
2026-01-14 14:34:52 +01:00
704edac9fd
Remove deprecated state from backup schedule ( #150114 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-08-07 17:42:53 +01:00
Erik Montnemery and GitHub
741a3d5009
Remove backup helper ( #143558 )
...
* Remove backup helper
* Update aws_s3 tests
2025-06-30 14:11:10 +02:00
Erik Montnemery and GitHub
4e1d5fbeb0
Add WS command to help reset custom entity_id ( #145504 )
...
* Add WS command to help reset custom entity_id
* Calculate suggested object id from entity properties
* Fix logic and add additional tests
* Adjust test
* Update folder_watcher test
* Handle current entity id matches the automatic entity id
* Don't store calculated_object_id
* Update snapshots
* Update snapshots
* Update test
* Tweak logic for reusing current entity_id
* Improve test
* Don't assign same entity_id to several entities
* Prioritize custom entity name
* Update snapshots
* Update snapshots
2025-05-26 19:28:27 +02:00
Erik Montnemery and GitHub
0260a03447
Store information about add-ons and folders which could not be backed up ( #145367 )
...
* Store information about add-ons and folders which could not be backed up
* Address review comments
2025-05-26 16:07:33 +02:00
086e97821f
Add automatic backup event entity to Home Assistant Backup system ( #145350 )
...
* add automatic backup event entity
* add tests
* fix test
* Apply suggestions from code review
Co-authored-by: Josef Zweck <josef@zweck.dev >
* implement _handle_coordinator_update
* add translations for event attributes
* simplify condition
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
---------
Co-authored-by: Josef Zweck <josef@zweck.dev >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-05-23 17:01:57 +02:00
Michael and GitHub
58906008b9
Add last attempted automatic backup sensor ( #144194 )
...
add last_attempted_automatic_backup sensor
2025-05-05 10:39:06 +02:00
Martin Hjelmare and GitHub
5392062edd
Add backup agent retention config ( #143174 )
2025-04-28 09:24:23 +02:00
Erik Montnemery and GitHub
234c4c1958
Move backup backup onboarding API to an onboarding platform ( #142713 )
...
* Move backup backup onboarding API to an onboarding platform
* Move additional test from onboarding to backup
* Remove backup tests from onboarding
2025-04-12 09:41:54 +02:00
Norbert Rittel and GitHub
0eeb6b5fd5
Replace "Idle" with common state in backup, fix sentence-case ( #141814 )
...
* Replace "Idle" with common state in `backup`, fix sentence-case
* Update test_sensors.ambr
2025-03-30 14:56:36 +02:00
Michael and GitHub
d954d04d12
Add diagnostics for Home Assistant Backup integration ( #141407 )
...
add diagnostics platform
2025-03-26 08:34:15 +01:00
e96e95c32d
Add sensor platform to backup integration ( #138663 )
...
* 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 >
2025-03-24 12:54:16 +01:00
Erik Montnemery and GitHub
05c61b7ec3
Rename BackupManager last_non_idle_event to last_action_event ( #140291 )
...
* Rename BackupManager last_non_idle_event to last_action_event
* Update snapshots
2025-03-19 17:28:40 +01:00
Erik Montnemery and GitHub
6ba45a32c0
Update typing of BackupAgent.async_get_backup ( #139923 )
...
* Update typing of BackupAgent.async_get_backup
* Remove manual reset of frame helper
2025-03-06 17:25:34 +01:00
bf190a8a73
Add backup helper ( #139199 )
...
* 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 >
2025-02-25 10:19:41 +01:00
351e594fe4
Add flag to backup store to track backup wizard completion ( #138368 )
...
* Add flag to backup store to track backup wizard completion
* Add comment
* Update hassio tests
* Update tests
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-02-24 17:14:47 +01:00
Erik Montnemery and GitHub
0d8c449ff4
Validate hassio backup settings ( #138880 )
...
* Validate hassio backup settings
* Add snapshots
* Don't reset addon and folder settings
* Adapt to changes in BackupConfig.update
2025-02-20 16:06:33 +01:00
Erik Montnemery and GitHub
b70c5710a9
Correct invalid automatic backup settings when loading from store ( #138716 )
...
* Correct invalid automatic backup settings when loading from store
* Improve docstring
* Improve tests
2025-02-19 16:24:30 +01:00
Erik Montnemery and GitHub
22c634e626
Don't allow setting backup retention to 0 days or copies ( #138771 )
...
* Don't allow setting backup retention to 0 days or copies
* Add tests
2025-02-18 15:16:44 +01:00
Erik Montnemery and GitHub
6ef1178a35
Use setup_backup_integration test helper in backup tests ( #138362 )
2025-02-12 09:49:01 +01:00
Erik Montnemery and GitHub
a6c51440e5
Use test helper for creating a mocked backup agent in backup tests ( #138312 )
...
* Use test helper for creating a mocked backup agent in backup tests
* Adjust according to discussion
2025-02-12 08:55:16 +01:00
Abílio Costa and GitHub
c2bb376c43
Handle generic agent exceptions when getting and deleting backups ( #138145 )
...
* Handle generic agent exceptions when getting backups
* Update hassio test
* Update delete_backup
2025-02-10 01:31:55 +01:00
Erik Montnemery and GitHub
eb5036854f
Improve error handling when supervisor backups are deleted ( #137331 )
...
* Improve error handling when supervisor backups are deleted
* Move exception definitions
2025-02-04 19:49:55 +01:00
Erik Montnemery and GitHub
5629b995ce
Include extra metadata in backup WS API ( #137296 )
...
* Include extra metadata in backup WS API
* Update onboarding backup view
* Update google_drive tests
2025-02-04 15:57:30 +01:00
Erik Montnemery and GitHub
bab616fa61
Fix handling of renamed backup files in the core writer ( #136898 )
...
* 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
2025-01-30 15:25:16 +01:00
aca9607e2f
Bump backup store to version 1.3 ( #136870 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2025-01-29 14:58:06 -06:00
Erik Montnemery and GitHub
b2ec72d75f
Persist backup restore status after core restart ( #136838 )
...
* Persist backup restore status after core restart
* Don't blow up if restore result file can't be removed
* Update tests
2025-01-29 16:58:33 +01:00
Erik Montnemery and GitHub
9a687e7f94
Add support for per-backup agent encryption flag ( #136622 )
...
* 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
2025-01-29 14:04:17 +01:00
Erik Montnemery and GitHub
abb58ec785
Include error reason in backup events ( #136697 )
...
* Include error reason in backup events
* Update hassio backup tests
* Sort code
* Remove catching BackupError in async_receive_backup
2025-01-28 14:44:09 +01:00
Michael and GitHub
8300fd2de8
Introduce unique_id to BackupAgent ( #136651 )
...
* add unique_id to BackupAgent
* adjust tests
2025-01-28 12:06:03 +01:00
Erik Montnemery and GitHub
ea9be01c7c
Indicate in WS API when scheduling additional automatic backup ( #136155 )
2025-01-22 18:01:46 +00:00
Erik Montnemery and GitHub
a2cbaef264
Prepare backup store to read version 2 ( #136149 )
2025-01-21 14:37:44 +01:00
Erik Montnemery and GitHub
fb4df00e3c
Add support for custom weekly backup schedule ( #136079 )
...
* Add support for custom weekly backup schedule
* Rename the new flag to custom_days
* Make the store change backwards compatible
* Improve comments
2025-01-21 08:27:41 +01:00
Erik Montnemery and GitHub
43da828a51
Make the time for automated backups configurable ( #135825 )
...
* 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
2025-01-20 12:57:46 +01:00
Erik Montnemery and GitHub
1fee0a5aa2
Improve backup store in tests ( #135798 )
2025-01-16 23:14:19 +01:00
Erik Montnemery and GitHub
6cbe18ebbd
Bump securetar to 2025.1.3 ( #135762 )
...
* Bump securetar to 2025.1.3
* Remove outdated fixture
2025-01-16 13:26:52 +01:00
Erik Montnemery and GitHub
f36a10126c
Add WS command backup/can_decrypt_on_download ( #135662 )
...
* Add WS command backup/can_decrypt_on_download
* Wrap errors
* Add default messages to exceptions
* Improve test coverage
2025-01-15 19:40:29 +01:00
Erik Montnemery and GitHub
0c3489c1b3
Adjust language in backup integration ( #134440 )
...
* Adjust language in backup integration
* Update tests
2025-01-02 13:29:46 +01:00
Erik Montnemery and GitHub
82f54eb9d2
Adjust the default backup name ( #133668 )
2024-12-21 09:38:59 +01:00
Erik Montnemery and GitHub
5afb9a5053
Validate password before restoring backup ( #133647 )
...
* Validate password before restoring backup
* Raise specific error when password is incorrect
2024-12-20 15:43:46 +01:00
Erik Montnemery and GitHub
7d04eef5c5
Reject duplicates in WS command backup/config/update ( #133650 )
...
* Reject duplicates in WS command backup/config/update
* Add tests
2024-12-20 15:06:55 +01:00
Erik Montnemery and GitHub
51d63ba508
Store automatic backup flag in backup metadata ( #133500 )
2024-12-18 18:30:46 +01:00
5516f3609d
Rename strategy backup to automatic backup ( #133489 )
...
* Rename strategy backup to automatic backup
* Update homeassistant/components/backup/config.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-12-18 17:35:11 +01:00