diff --git a/src/components/buttons/HacsButtonMainAction.ts b/src/components/buttons/HacsButtonMainAction.ts index b1800bb5..6da9d30c 100644 --- a/src/components/buttons/HacsButtonMainAction.ts +++ b/src/components/buttons/HacsButtonMainAction.ts @@ -44,6 +44,13 @@ export class HacsButtonMainAction extends HacsRepositoryButton { `; } + if (!this.repository.can_install && this.repository.installed) { + return html` + + ${localize(`repository.upgrade`)} + + `; + } return html` ${this.repository.state == "installing"