From 4b4906318aedad37eeb82bea2f7079328f21969f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 13 Oct 2025 11:05:50 -1000 Subject: [PATCH] narrow --- .../config-flow/dialog-data-entry-flow.ts | 42 ++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/dialogs/config-flow/dialog-data-entry-flow.ts b/src/dialogs/config-flow/dialog-data-entry-flow.ts index f7b0e10e5b..ee3b20f305 100644 --- a/src/dialogs/config-flow/dialog-data-entry-flow.ts +++ b/src/dialogs/config-flow/dialog-data-entry-flow.ts @@ -495,26 +495,30 @@ class DataEntryFlowDialog extends LitElement { dialogClosedCallback: this._params!.dialogClosedCallback, }); } else if (_step.next_flow[0] === "options_flow") { - showOptionsFlowDialog( - this._params!.dialogParentElement!, - _step.result!, - { - continueFlowId: _step.next_flow[1], - navigateToResult: this._params!.navigateToResult, - dialogClosedCallback: this._params!.dialogClosedCallback, - } - ); + if (_step.type === "create_entry") { + showOptionsFlowDialog( + this._params!.dialogParentElement!, + _step.result!, + { + continueFlowId: _step.next_flow[1], + navigateToResult: this._params!.navigateToResult, + dialogClosedCallback: this._params!.dialogClosedCallback, + } + ); + } } else if (_step.next_flow[0] === "config_subentries_flow") { - showSubConfigFlowDialog( - this._params!.dialogParentElement!, - _step.result!, - _step.next_flow[0], - { - continueFlowId: _step.next_flow[1], - navigateToResult: this._params!.navigateToResult, - dialogClosedCallback: this._params!.dialogClosedCallback, - } - ); + if (_step.type === "create_entry") { + showSubConfigFlowDialog( + this._params!.dialogParentElement!, + _step.result!, + _step.next_flow[0], + { + continueFlowId: _step.next_flow[1], + navigateToResult: this._params!.navigateToResult, + dialogClosedCallback: this._params!.dialogClosedCallback, + } + ); + } } else { this.closeDialog(); showAlertDialog(this._params!.dialogParentElement!, {