Skip to content

Commit

Permalink
Update dialog-add-integration.ts (#18615)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnikles authored Nov 16, 2023
1 parent f5edee1 commit e94461f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/panels/config/integrations/dialog-add-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,14 +570,23 @@ class AddIntegrationDialog extends LitElement {
}

if (
["cloud", "google_assistant", "alexa"].includes(integration.domain) &&
integration.domain === "cloud" &&
isComponentLoaded(this.hass, "cloud")
) {
this.closeDialog();
navigate("/config/cloud");
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
Expand Down

0 comments on commit e94461f

Please sign in to comment.