Option flows dont have result (#8787)

This commit is contained in:
Bram Kragten
2021-04-02 00:11:15 +02:00
committed by GitHub
parent 334196799a
commit 01be5243de
3 changed files with 3 additions and 3 deletions

View File

@@ -314,7 +314,7 @@ class DataEntryFlowDialog extends LitElement {
this._step &&
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._fetchAreas();
} else {