From e94461f7fe55017857e4f4e565d44f79d3c1b5ea Mon Sep 17 00:00:00 2001 From: dnikles Date: Thu, 16 Nov 2023 06:18:18 -0500 Subject: [PATCH] Update dialog-add-integration.ts (#18615) --- .../config/integrations/dialog-add-integration.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/panels/config/integrations/dialog-add-integration.ts b/src/panels/config/integrations/dialog-add-integration.ts index c8a7616edcb4..2e2a3f100ec8 100644 --- a/src/panels/config/integrations/dialog-add-integration.ts +++ b/src/panels/config/integrations/dialog-add-integration.ts @@ -570,7 +570,7 @@ class AddIntegrationDialog extends LitElement { } if ( - ["cloud", "google_assistant", "alexa"].includes(integration.domain) && + integration.domain === "cloud" && isComponentLoaded(this.hass, "cloud") ) { this.closeDialog(); @@ -578,6 +578,15 @@ class AddIntegrationDialog extends LitElement { return; } + if ( + ["google_assistant", "alexa"].includes(integration.domain) && + isComponentLoaded(this.hass, "cloud") + ) { + this.closeDialog(); + navigate("/config/voice-assistants/assistants"); + return; + } + const manifest = await fetchIntegrationManifest( this.hass, integration.domain