Fix open config flow when coming from a my link (#13720)

This commit is contained in:
Joakim Sørensen 2022-09-13 19:58:32 +02:00 committed by GitHub
parent 7696df56ac
commit c95d19299b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,22 +695,22 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
if (handlers.includes(domain)) { if (handlers.includes(domain)) {
const localize = await localizePromise; const localize = await localizePromise;
if ( if (
!(await showConfirmationDialog(this, { await showConfirmationDialog(this, {
title: localize("ui.panel.config.integrations.confirm_new", { title: localize("ui.panel.config.integrations.confirm_new", {
integration: domainToName(localize, domain), integration: domainToName(localize, domain),
}), }),
})) })
) { ) {
return; showConfigFlowDialog(this, {
dialogClosedCallback: () => {
this._handleFlowUpdated();
},
startFlowHandler: domain,
manifest: this._manifests[domain],
showAdvanced: this.hass.userData?.showAdvanced,
});
} }
showConfigFlowDialog(this, { return;
dialogClosedCallback: () => {
this._handleFlowUpdated();
},
startFlowHandler: domain,
manifest: this._manifests[domain],
showAdvanced: this.hass.userData?.showAdvanced,
});
} }
const supportedBrands = await getSupportedBrands(this.hass); const supportedBrands = await getSupportedBrands(this.hass);