mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
allow previews in config_subentries_flow (#25859)
This commit is contained in:
parent
1990472970
commit
ad589b32c9
@ -13,7 +13,7 @@ export const subscribePreviewGeneric = (
|
|||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
domain: string,
|
domain: string,
|
||||||
flow_id: string,
|
flow_id: string,
|
||||||
flow_type: "config_flow" | "options_flow",
|
flow_type: "config_flow" | "options_flow" | "config_subentries_flow",
|
||||||
user_input: Record<string, any>,
|
user_input: Record<string, any>,
|
||||||
callback: (preview: GenericPreview) => void
|
callback: (preview: GenericPreview) => void
|
||||||
): Promise<UnsubscribeFunc> =>
|
): Promise<UnsubscribeFunc> =>
|
||||||
|
@ -82,7 +82,11 @@ export class FlowPreviewGeneric extends LitElement {
|
|||||||
(await this._unsub)();
|
(await this._unsub)();
|
||||||
this._unsub = undefined;
|
this._unsub = undefined;
|
||||||
}
|
}
|
||||||
if (this.flowType !== "config_flow" && this.flowType !== "options_flow") {
|
if (
|
||||||
|
this.flowType !== "config_flow" &&
|
||||||
|
this.flowType !== "options_flow" &&
|
||||||
|
this.flowType !== "config_subentries_flow"
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._error = undefined;
|
this._error = undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user