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,14 +695,12 @@ 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();
@ -712,6 +710,8 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
showAdvanced: this.hass.userData?.showAdvanced,
});
}
return;
}
const supportedBrands = await getSupportedBrands(this.hass);
const supportedBrandsIntegrations =