From 00103513f0df70937d3ec69d1c5ef0efbcc78e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 13 Nov 2021 11:09:50 +0100 Subject: [PATCH] Fix addedToLovelace check (#530) --- src/components/hacs-repository-card.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/hacs-repository-card.ts b/src/components/hacs-repository-card.ts index 345098de..d21d2e52 100644 --- a/src/components/hacs-repository-card.ts +++ b/src/components/hacs-repository-card.ts @@ -206,7 +206,8 @@ export class HacsRepositoryCard extends LitElement { ${this.hacs.localize("common.download")} ` - : this.repository.pending_upgrade && this.addedToLovelace + : this.repository.pending_upgrade && + this.hacs.addedToLovelace!(this.hacs, this.repository) ? html`
${this.hacs.localize("common.update")}