From 3a17f2d73ed65bde80dfa3c68e1574e33d3b2e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 13 Sep 2022 19:58:32 +0200 Subject: [PATCH] Fix open config flow when coming from a my link (#13720) --- .../integrations/ha-config-integrations.ts | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/panels/config/integrations/ha-config-integrations.ts b/src/panels/config/integrations/ha-config-integrations.ts index 82ce8bf60f..765627cec0 100644 --- a/src/panels/config/integrations/ha-config-integrations.ts +++ b/src/panels/config/integrations/ha-config-integrations.ts @@ -689,22 +689,22 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) { if (handlers.includes(domain)) { const localize = await localizePromise; if ( - !(await showConfirmationDialog(this, { + await showConfirmationDialog(this, { title: localize("ui.panel.config.integrations.confirm_new", { integration: domainToName(localize, domain), }), - })) + }) ) { - return; + showConfigFlowDialog(this, { + dialogClosedCallback: () => { + this._handleFlowUpdated(); + }, + startFlowHandler: domain, + manifest: this._manifests[domain], + showAdvanced: this.hass.userData?.showAdvanced, + }); } - showConfigFlowDialog(this, { - dialogClosedCallback: () => { - this._handleFlowUpdated(); - }, - startFlowHandler: domain, - manifest: this._manifests[domain], - showAdvanced: this.hass.userData?.showAdvanced, - }); + return; } const supportedBrands = await getSupportedBrands(this.hass);