Change Data Entry Flow loading step description logic + cleanups (#9558)

* Change Data Entry Flow loading step description logic + cleanups

Fixes #6251

* Lint

* Address comment
This commit is contained in:
Bram Kragten
2021-07-15 21:07:25 +02:00
committed by GitHub
parent cc81239b9d
commit 1206e2d75f
12 changed files with 177 additions and 76 deletions

View File

@@ -79,8 +79,21 @@ export interface FlowConfig {
hass: HomeAssistant,
step: DataEntryFlowStepProgress
): TemplateResult | "";
renderLoadingDescription(
hass: HomeAssistant,
loadingReason: LoadingReason,
handler?: string,
step?: DataEntryFlowStep | null
): string;
}
export type LoadingReason =
| "loading_handlers"
| "loading_flow"
| "loading_step"
| "loading_devices_areas";
export interface DataEntryFlowDialogParams {
startFlowHandler?: string;
continueFlowId?: string;