Add start addon in orchestrator

This commit is contained in:
SebClem 2024-07-12 14:32:36 +02:00
parent 13883ab883
commit f0e603431c
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -84,6 +84,9 @@ export function doBackupWorkflow(type: WorkflowType) {
);
}
})
.then(() => {
return homeAssistantService.startAddons(addonsToStartStop);
})
.then(() => {
logger.info("Backup workflow finished successfully !");
messageManager.info("Backup workflow finished successfully !");
@ -104,8 +107,7 @@ export function doBackupWorkflow(type: WorkflowType) {
// This methods remove addon that are no installed in HA from the conf array
function sanitizeAddonList(addonInConf: string[], addonInHA: AddonModel[]) {
addonInConf.filter((value) => addonInHA.some((v) => v.slug == value));
return addonInConf;
return addonInConf.filter((value) => addonInHA.some((v) => v.slug == value));
}
function getAddonToBackup(excludedAddon: string[], addonInHA: AddonModel[]) {