From 5ab070692c3dd14dd82daa406762e31540016943 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 6 Feb 2025 18:48:52 +0000 Subject: [PATCH] Navigate to newly created config entry --- src/dialogs/config-flow/step-flow-create-entry.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dialogs/config-flow/step-flow-create-entry.ts b/src/dialogs/config-flow/step-flow-create-entry.ts index 06eab5c85b1d..fb03608a045f 100644 --- a/src/dialogs/config-flow/step-flow-create-entry.ts +++ b/src/dialogs/config-flow/step-flow-create-entry.ts @@ -19,6 +19,7 @@ import { showAlertDialog } from "../generic/show-dialog-box"; import { showVoiceAssistantSetupDialog } from "../voice-assistant-setup/show-voice-assistant-setup-dialog"; import type { FlowConfig } from "./show-dialog-data-entry-flow"; import { configFlowContentStyles } from "./styles"; +import { navigate } from "../../common/navigate"; @customElement("step-flow-create-entry") class StepFlowCreateEntry extends LitElement { @@ -152,6 +153,11 @@ class StepFlowCreateEntry extends LitElement { private _flowDone(): void { fireEvent(this, "flow-update", { step: undefined }); + if (this.step.result) { + navigate( + `/config/integrations/integration/${this.step.result.domain}#config_entry=${this.step.result.entry_id}` + ); + } } private async _areaPicked(ev: CustomEvent) {