Erik Montnemery
093b16c723
Make WS command backup/generate send events ( #130524 )
...
* Make WS command backup/generate send events
* Update backup.create service
2024-11-13 16:16:49 +01:00
Joakim Sørensen
ac0c75a598
Add upload capability to the backup integration ( #128546 )
...
* Add upload capability to the backup integration
* Limit context switch
* rename
* coverage for http
* Test receiving a backup file
* Update test_manager.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-11-12 15:27:53 +01:00
Joakim Sørensen
3cadc1796f
Use JSON as format for .HA_RESTORE ( #129792 )
...
* Use JSON as format for .HA_RESTORE
* Adjust bakup manager test
2024-11-04 13:07:11 +01:00
Joakim Sørensen
31dcc25ba5
Add handler to restore a backup file with the backup integration ( #128365 )
...
* Early pushout of restore handling for core/container
* Adjust after rebase
* Move logging definition, we should only do this if we go ahead with the restore
* First round
* More paths
* Add async_restore_backup to base class
* Block restore of new backup files
* manager tests
* Add websocket test
* Add testing to main
* Add coverage for missing backup file
* Catch FileNotFoundError instead
* Patch Path.read_text instead
* Remove HA_RESTORE from keep
* Use secure paths
* Fix restart test
* extend coverage
* Mock argv
* Adjustments
2024-11-01 16:25:22 +01:00
Joakim Sørensen
a14cb13194
Add BaseBackupManager as a common interface for backup managers ( #126611 )
...
* Add BaseBackupManager as a common interface for backup managers
* Document the key
* Update homeassistant/components/backup/manager.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-15 12:31:12 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
9b7cc088be
Fix spelling [runtime] ( #114169 )
2024-03-25 11:32:50 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration ( #112467 )
2024-03-05 21:16:42 -10:00
Joakim Sørensen
57d3f3f9f7
Split pre/post backup actions into dedicated methods ( #110632 )
...
* Split pre/post backup actions into dedicated methods
* Update homeassistant/components/backup/manager.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-15 12:38:36 +01:00
J. Nick Koston
3a053afac6
Create backups files without having to copy inner tarballs ( #110267 )
2024-02-14 10:08:22 -06:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
J. Nick Koston
138bbd9c28
Use json_loads_object util in backup ( #89895 )
...
* Use json_loads_object util in backup
* adjust test
2023-03-17 20:25:29 -04:00
epenet
ba23816a0c
Inverse json import logic ( #88099 )
...
* Fix helpers and util
* Adjust components
* Move back errors
* Add report
* mypy
* mypy
* Assert deprecation messages
* Move test_json_loads_object
* Adjust tests
* Fix rebase
* Adjust pylint plugin
* Fix plugin
* Adjust references
* Adjust backup tests
2023-02-16 11:37:57 +01:00
epenet
0cf5e9fb4a
Add type hints to integration tests (part 2) ( #87789 )
...
* Add type hints to integration tests (part 2)
* typo
* Improve analytics
* Improve automation
* Imrpove bluetooth
2023-02-10 16:05:26 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Joakim Sørensen
6f61ed8799
Add backup platform support ( #68182 )
2022-03-15 14:46:02 -07:00
Joakim Sørensen
32adeb8356
Remove class attributes for backup manager ( #67431 )
...
* Remove class attributes for backup manager
* remove patches
2022-03-01 15:16:18 +01:00
Joakim Sørensen
0ed51dae13
Add Backup integration ( #66395 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-28 15:48:12 -08:00