mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Option flows dont have result (#8787)
This commit is contained in:
parent
334196799a
commit
01be5243de
@ -45,7 +45,7 @@ export interface DataEntryFlowStepCreateEntry {
|
|||||||
flow_id: string;
|
flow_id: string;
|
||||||
handler: string;
|
handler: string;
|
||||||
title: string;
|
title: string;
|
||||||
result: ConfigEntry;
|
result?: ConfigEntry;
|
||||||
description: string;
|
description: string;
|
||||||
description_placeholders: Record<string, string>;
|
description_placeholders: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -314,7 +314,7 @@ class DataEntryFlowDialog extends LitElement {
|
|||||||
this._step &&
|
this._step &&
|
||||||
this._step.type === "create_entry"
|
this._step.type === "create_entry"
|
||||||
) {
|
) {
|
||||||
if (this._params!.flowConfig.loadDevicesAndAreas) {
|
if (this._step.result && this._params!.flowConfig.loadDevicesAndAreas) {
|
||||||
this._fetchDevices(this._step.result.entry_id);
|
this._fetchDevices(this._step.result.entry_id);
|
||||||
this._fetchAreas();
|
this._fetchAreas();
|
||||||
} else {
|
} else {
|
||||||
|
@ -43,7 +43,7 @@ class StepFlowCreateEntry extends LitElement {
|
|||||||
<h2>Success!</h2>
|
<h2>Success!</h2>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
${this.flowConfig.renderCreateEntryDescription(this.hass, this.step)}
|
${this.flowConfig.renderCreateEntryDescription(this.hass, this.step)}
|
||||||
${this.step.result.state === "not_loaded"
|
${this.step.result?.state === "not_loaded"
|
||||||
? html`<span class="error"
|
? html`<span class="error"
|
||||||
>${localize(
|
>${localize(
|
||||||
"ui.panel.config.integrations.config_flow.not_loaded"
|
"ui.panel.config.integrations.config_flow.not_loaded"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user