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 Bram Kragten
parent 8f6a09f44c
commit 3a17f2d73e
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -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);