1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-29 15:43:55 +00:00
This commit is contained in:
Erik
2022-12-09 08:48:28 +01:00
parent e1eaa9fb9d
commit 8ef9a4d015
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ def _prepare_result_json(
result: data_entry_flow.FlowResult,
) -> data_entry_flow.FlowResult:
"""Convert result to JSON."""
if result["type"] not in (
if result["type"] in (
data_entry_flow.FlowResultType.CREATE_ENTRY,
data_entry_flow.FlowResultType.FINISH_FLOW,
):

View File

@@ -26,7 +26,7 @@ class _BaseFlowManagerView(HomeAssistantView):
self, result: data_entry_flow.FlowResult
) -> data_entry_flow.FlowResult:
"""Convert result to JSON."""
if result["type"] not in (
if result["type"] in (
data_entry_flow.FlowResultType.CREATE_ENTRY,
data_entry_flow.FlowResultType.FINISH_FLOW,
):