mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +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,
|
||||
domain: string,
|
||||
flow_id: string,
|
||||
flow_type: "config_flow" | "options_flow",
|
||||
flow_type: "config_flow" | "options_flow" | "config_subentries_flow",
|
||||
user_input: Record<string, any>,
|
||||
callback: (preview: GenericPreview) => void
|
||||
): Promise<UnsubscribeFunc> =>
|
||||
|
@ -82,7 +82,11 @@ export class FlowPreviewGeneric extends LitElement {
|
||||
(await this._unsub)();
|
||||
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;
|
||||
}
|
||||
this._error = undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user