Skip to content

Commit 722d445

Browse files
committed
Don't fail in when the flow was aborted
1 parent 5802be3 commit 722d445

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

homeassistant/data_entry_flow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,10 @@ def schedule_configure(_: asyncio.Task) -> None:
547547
flow.cur_step = result
548548
return result
549549

550-
# Abort and Success results both finish the flow
551-
self._async_remove_flow_progress(flow.flow_id)
550+
# Abort and Success results both finish the flow.
551+
# Suppress UnknownFlow in case the flow is already aborted
552+
with suppress(UnknownFlow):
553+
self._async_remove_flow_progress(flow.flow_id)
552554

553555
return result
554556

0 commit comments

Comments
 (0)