Improve onboarding backup restore (#23340)

* Improve onboarding backup restore

* Fix onboarding backup restore

* Fix restoring value in onboarding-restore-backup
This commit is contained in:
Wendelin
2024-12-20 12:13:16 +01:00
committed by GitHub
parent f1f53b9f24
commit 37aa2bd869
7 changed files with 265 additions and 207 deletions

View File

@@ -15,6 +15,7 @@ import { bytesToString } from "../util/bytes-to-string";
declare global {
interface HASSDomEvents {
"file-picked": { files: File[] };
"files-cleared": void;
}
}
@@ -216,6 +217,7 @@ export class HaFileUpload extends LitElement {
this._input!.value = "";
this.value = undefined;
fireEvent(this, "change");
fireEvent(this, "files-cleared");
}
static get styles() {