Skip to content

Commit

Permalink
Fix addedToLovelace check (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Nov 13, 2021
1 parent 4b854cf commit 0010351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/hacs-repository-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export class HacsRepositoryCard extends LitElement {
${this.hacs.localize("common.download")}
</mwc-button>
</div> `
: this.repository.pending_upgrade && this.addedToLovelace
: this.repository.pending_upgrade &&
this.hacs.addedToLovelace!(this.hacs, this.repository)
? html`<div>
<mwc-button class="update-header" @click=${this._updateRepository} raised>
${this.hacs.localize("common.update")}
Expand Down

0 comments on commit 0010351

Please sign in to comment.