Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jul 19, 2024
1 parent 3382f0d commit 441aa35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/components/dialogs/hacs-download-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/localize/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 441aa35

Please sign in to comment.