Skip to content

Commit ad589b3

Browse files
authored
allow previews in config_subentries_flow (#25859)
1 parent 1990472 commit ad589b3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/data/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const subscribePreviewGeneric = (
1313
hass: HomeAssistant,
1414
domain: string,
1515
flow_id: string,
16-
flow_type: "config_flow" | "options_flow",
16+
flow_type: "config_flow" | "options_flow" | "config_subentries_flow",
1717
user_input: Record<string, any>,
1818
callback: (preview: GenericPreview) => void
1919
): Promise<UnsubscribeFunc> =>

src/dialogs/config-flow/previews/flow-preview-generic.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ export class FlowPreviewGeneric extends LitElement {
8282
(await this._unsub)();
8383
this._unsub = undefined;
8484
}
85-
if (this.flowType !== "config_flow" && this.flowType !== "options_flow") {
85+
if (
86+
this.flowType !== "config_flow" &&
87+
this.flowType !== "options_flow" &&
88+
this.flowType !== "config_subentries_flow"
89+
) {
8690
return;
8791
}
8892
this._error = undefined;

0 commit comments

Comments
 (0)