From ef3caf91f1f38c567dba7c399eda5afd1441342b Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Mon, 5 Dec 2022 14:33:50 +0100 Subject: [PATCH] Fix retreiving topic value when using MQTT publish (#14554) fixes undefined --- .../integrations/integration-panels/mqtt/mqtt-config-panel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts b/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts index 1d81f69fe4..f658f0b6fb 100644 --- a/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts +++ b/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts @@ -82,7 +82,7 @@ class HaPanelDevMqtt extends LitElement { } private _handleTopic(ev: CustomEvent) { - this.topic = ev.detail.value; + this.topic = (ev.target! as any).value; if (localStorage && this.inited) { localStorage["panel-dev-mqtt-topic"] = this.topic; }