Fix delete backup endpoint (#9890)

This commit is contained in:
Joakim Sørensen 2021-08-27 12:26:23 +02:00 committed by GitHub
parent 791f3b896d
commit 035d621109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,9 +280,9 @@ class HassioBackupDialog
atLeastVersion(this.hass.config.version, 2021, 9) ? "DELETE" : "POST",
`hassio/${
atLeastVersion(this.hass.config.version, 2021, 9)
? "backups"
: "snapshots"
}/${this._backup!.slug}/remove`
? `backups/${this._backup!.slug}`
: `snapshots/${this._backup!.slug}/remove`
}`
)
.then(
() => {