From e21efc0a5ce1ed64755c0d6328dbd7d5024ce0c0 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 23 Jun 2020 18:51:08 +0200 Subject: [PATCH 1/2] Add button to MQTT options flow (#6217) --- .../mqtt/mqtt-config-panel.ts | 26 ++++++++++++++++++- .../zha/zha-config-dashboard.ts | 14 +++++++--- 2 files changed, 36 insertions(+), 4 deletions(-) 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 37a7d883de..17aef88705 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 @@ -15,6 +15,8 @@ import { haStyle } from "../../../../../resources/styles"; import { HomeAssistant } from "../../../../../types"; import "./mqtt-subscribe-card"; import "../../../../../layouts/hass-subpage"; +import { showOptionsFlowDialog } from "../../../../../dialogs/config-flow/show-dialog-options-flow"; +import { getConfigEntries } from "../../../../../data/config_entries"; @customElement("mqtt-config-panel") class HaPanelDevMqtt extends LitElement { @@ -40,6 +42,13 @@ class HaPanelDevMqtt extends LitElement { return html`
+ +
+ Re-configure MQTT +
+
entry.entry_id === configEntryId + ); + showOptionsFlowDialog(this, configEntry!); + } + static get styles(): CSSResultArray { return [ haStyle, @@ -116,7 +138,9 @@ class HaPanelDevMqtt extends LitElement { margin: 0 auto; direction: ltr; } - + ha-card:first-child { + margin-bottom: 16px; + } mqtt-subscribe-card { display: block; margin: 16px auto; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts b/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts index 7000ba3f75..67c0cc2a4d 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts @@ -56,19 +56,27 @@ class ZHAConfigDashboard extends LitElement { >
- Network info/settings for specific config entry + In the future you can change network settings for ZHA here.
${this.configEntryId ? html`` : ""} From 44210ce6f26a2d249d3ce07fd9080defe677b4db Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 23 Jun 2020 09:55:32 -0700 Subject: [PATCH 2/2] Bumped version to 20200623.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 17e217a328..5c550bcd86 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20200623.1", + version="20200623.2", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors",