From 1832ed0a48fbc75feb26fa53a8dec1aea7d77a96 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Wed, 26 Jan 2022 11:13:20 +0100 Subject: [PATCH] Ensure tag QR code gets shown for each dialog opening (#11438) --- src/panels/config/tags/dialog-tag-detail.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/panels/config/tags/dialog-tag-detail.ts b/src/panels/config/tags/dialog-tag-detail.ts index 27ec343406..02a6aa03fa 100644 --- a/src/panels/config/tags/dialog-tag-detail.ts +++ b/src/panels/config/tags/dialog-tag-detail.ts @@ -1,13 +1,6 @@ import "@material/mwc-button"; import "@polymer/paper-input/paper-input"; -import { - css, - CSSResultGroup, - html, - LitElement, - PropertyValues, - TemplateResult, -} from "lit"; +import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators"; import { fireEvent } from "../../../common/dom/fire_event"; import { createCloseHeading } from "../../../components/ha-dialog"; @@ -49,6 +42,8 @@ class DialogTagDetail this._id = ""; this._name = ""; } + + this._generateQR(); } public closeDialog(): void { @@ -170,11 +165,6 @@ class DialogTagDetail `; } - protected override firstUpdated(changedProps: PropertyValues): void { - super.firstUpdated(changedProps); - this._generateQR(); - } - private _valueChanged(ev: CustomEvent) { const configValue = (ev.target as any).configValue;