mirror of
https://github.com/elisspace/core.git
synced 2026-08-29 15:43:55 +00:00
Tweak
This commit is contained in:
@@ -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,
|
||||
):
|
||||
|
||||
@@ -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,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user