From 441aa35396482238073c412435c6da34555f103e Mon Sep 17 00:00:00 2001 From: ludeeus Date: Fri, 19 Jul 2024 08:30:39 +0000 Subject: [PATCH] cleanup --- src/components/dialogs/hacs-download-dialog.ts | 7 +++++-- src/localize/languages/en.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/dialogs/hacs-download-dialog.ts b/src/components/dialogs/hacs-download-dialog.ts index ade027fb..d7a0f344 100644 --- a/src/components/dialogs/hacs-download-dialog.ts +++ b/src/components/dialogs/hacs-download-dialog.ts @@ -340,11 +340,14 @@ export class HacsDonwloadDialog extends LitElement { if (this._releases !== undefined) { return; } - this._releases = await repositoryReleases(this.hass, this._repository!.id); + try { + this._releases = await repositoryReleases(this.hass, this._repository!.id); + } catch (error) { + this._error = error; + } } private _versionChanged(ev: CustomEvent) { - console.log(ev.detail.value); this._selectedVersion = ev.detail.value.release; } diff --git a/src/localize/languages/en.json b/src/localize/languages/en.json index 24f39e3a..b90ac373 100644 --- a/src/localize/languages/en.json +++ b/src/localize/languages/en.json @@ -81,7 +81,7 @@ "fetching_releases": "Fetching releases...", "no_releases": "No releases found", "release": "Release", - "release_warning": "It is not adviced to use this section to do a rollback, restore a backup instead.", + "release_warning": "It is not advised to use this section to do a rollback, restore a backup instead.", "restart": "Remember that you need to restart Home Assistant before changes to integrations (custom_components) are applied.", "selector_note": "The version selector will be removed in a future release. If you need to install a specific version, you can do so by using the service call for update entities.", "note_downloaded": "When downloaded, this will be located in {location}",