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
25e887b457
Move backup plaform loading to the base class ( #128449 )
2024-10-15 12:44:13 -04: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
Marc Mueller
ff3a801936
Add empty line after module docstring [a-d] ( #112697 )
2024-03-08 14:51:32 +01:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration ( #112467 )
2024-03-05 21:16:42 -10:00
J. Nick Koston
0d4c82b54d
Convert Integration platforms processors where nothing is awaited to callbacks ( #110825 )
...
Convert Integration platforms processors where nothing is awaited callbacks
2024-02-17 20:49:47 -05: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
Ville Skyttä
ced67e5800
Import util.dt
as dt_util
in components/[a-d]*
( #93756 )
2023-05-30 00:02:06 +03:00
rlippmann
f5911bcad6
Add slots to dataclasses in default_config ( #91410 )
...
* add dataclass slots to default config items
* remove slots from sun mixing
2023-04-14 14:22:39 -04:00
J. Nick Koston
00a4279d64
Speed up backups ( #90613 )
2023-04-01 15:14:59 -04:00
J. Nick Koston
e87359761b
Fix some I/O in the event loop during backup ( #89894 )
2023-03-17 20:28:29 -04: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
Franck Nijhof
b0cee0bc46
String formatting and max line length - Part 1 ( #84390 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
Joakim Sørensen
b44ce32c7f
Handle KeyError when loading backups ( #70028 )
2022-04-14 09:56:59 -07:00
Joakim Sørensen
6f61ed8799
Add backup platform support ( #68182 )
2022-03-15 14:46:02 -07:00
Joakim Sørensen
c5800d6103
Split out sync functions in backup manager ( #67428 )
2022-03-11 20:32:05 -08:00
Joakim Sørensen
e58ce7ab6e
Fix returned value from backup/info WS command ( #67439 )
2022-03-01 21:37:51 +01: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