Update dialog-add-integration.ts (#18615)

This commit is contained in:
dnikles 2023-11-16 06:18:18 -05:00 committed by GitHub
parent f5edee1e91
commit e94461f7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,7 +570,7 @@ class AddIntegrationDialog extends LitElement {
} }
if ( if (
["cloud", "google_assistant", "alexa"].includes(integration.domain) && integration.domain === "cloud" &&
isComponentLoaded(this.hass, "cloud") isComponentLoaded(this.hass, "cloud")
) { ) {
this.closeDialog(); this.closeDialog();
@ -578,6 +578,15 @@ class AddIntegrationDialog extends LitElement {
return; return;
} }
if (
["google_assistant", "alexa"].includes(integration.domain) &&
isComponentLoaded(this.hass, "cloud")
) {
this.closeDialog();
navigate("/config/voice-assistants/assistants");
return;
}
const manifest = await fetchIntegrationManifest( const manifest = await fetchIntegrationManifest(
this.hass, this.hass,
integration.domain integration.domain