Add current step that is in progress (#35272)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-05-05 21:34:51 -07:00
1 parent 56beec1ce9
commit 1c5b4dbd97
3 files changed
+20 -3

No files matched your search

+6 -1
View File
@@ -94,7 +94,12 @@ class FlowManager(abc.ABC):
def async_progress(self) -> List[Dict]:
"""Return the flows in progress."""
return [
{"flow_id": flow.flow_id, "handler": flow.handler, "context": flow.context}
{
"flow_id": flow.flow_id,
"handler": flow.handler,
"context": flow.context,
"step_id": flow.cur_step["step_id"],
}
for flow in self._progress.values()
if flow.cur_step is not None
]