mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +00:00
Update dialog-add-integration.ts (#18615)
This commit is contained in:
parent
f5edee1e91
commit
e94461f7fe
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user