Add support for exact % progress reports in options flow (#25082)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Petar Petrov
2025-04-17 10:42:52 +03:00
committed by GitHub
parent 38c11e738e
commit c73a9fccb8
5 changed files with 64 additions and 18 deletions

View File

@@ -20,6 +20,8 @@ class StepFlowAbort extends LitElement {
@property({ attribute: false }) public domain!: string;
@property({ attribute: false }) public handler!: string;
protected firstUpdated(changed: PropertyValues) {
super.firstUpdated(changed);
if (this.step.reason === "missing_credentials") {
@@ -58,7 +60,7 @@ class StepFlowAbort extends LitElement {
applicationCredentialAddedCallback: () => {
showConfigFlowDialog(this.params.dialogParentElement!, {
dialogClosedCallback: this.params.dialogClosedCallback,
startFlowHandler: this.domain,
startFlowHandler: this.handler,
showAdvanced: this.hass.userData?.showAdvanced,
navigateToResult: this.params.navigateToResult,
});