@@ -16,7 +16,7 @@ import "../../../components/ha-icon-button";
1616import "../../../components/ha-icon-next" ;
1717import "../../../components/ha-svg-icon" ;
1818import type { BackupAgent , BackupConfig } from "../../../data/backup" ;
19- import { updateBackupConfig } from "../../../data/backup" ;
19+ import { saveBackupConfig } from "../../../data/backup" ;
2020import type { CloudStatus } from "../../../data/cloud" ;
2121import {
2222 getSupervisorUpdateConfig ,
@@ -414,18 +414,7 @@ class HaConfigBackupSettings extends LitElement {
414414 private _debounceSave = debounce ( ( ) => this . _save ( ) , 500 ) ;
415415
416416 private async _save ( ) {
417- await updateBackupConfig ( this . hass , {
418- create_backup : {
419- agent_ids : this . _config ! . create_backup . agent_ids ,
420- include_folders : this . _config ! . create_backup . include_folders ?? [ ] ,
421- include_database : this . _config ! . create_backup . include_database ,
422- include_addons : this . _config ! . create_backup . include_addons ?? [ ] ,
423- include_all_addons : this . _config ! . create_backup . include_all_addons ,
424- password : this . _config ! . create_backup . password ,
425- } ,
426- retention : this . _config ! . retention ,
427- schedule : this . _config ! . schedule ,
428- } ) ;
417+ await saveBackupConfig ( this . hass , this . _config ! ) ;
429418 fireEvent ( this , "ha-refresh-backup-config" ) ;
430419 }
431420
0 commit comments