Add flow for "progress" step (#7592)

This commit is contained in:
Joakim Sørensen
2020-11-09 22:45:37 +01:00
committed by GitHub
parent 32ff166a74
commit 6ae67ed299
6 changed files with 138 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ import "./step-flow-external";
import "./step-flow-form";
import "./step-flow-loading";
import "./step-flow-pick-handler";
import "./step-flow-progress";
let instance = 0;
@@ -195,6 +196,14 @@ class DataEntryFlowDialog extends LitElement {
.hass=${this.hass}
></step-flow-abort>
`
: this._step.type === "progress"
? html`
<step-flow-progress
.flowConfig=${this._params.flowConfig}
.step=${this._step}
.hass=${this.hass}
></step-flow-progress>
`
: this._devices === undefined || this._areas === undefined
? // When it's a create entry result, we will fetch device & area registry
html` <step-flow-loading></step-flow-loading> `