mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Search/replace RESULT_TYPE_* by FlowResultType enum (#74642)
This commit is contained in:
@@ -87,10 +87,10 @@ async def fixture(hass, hass_client_no_auth):
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
"dialogflow", context={"source": config_entries.SOURCE_USER}
|
||||
)
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM, result
|
||||
assert result["type"] == data_entry_flow.FlowResultType.FORM, result
|
||||
|
||||
result = await hass.config_entries.flow.async_configure(result["flow_id"], {})
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY
|
||||
webhook_id = result["result"].data["webhook_id"]
|
||||
|
||||
return await hass_client_no_auth(), webhook_id
|
||||
|
||||
Reference in New Issue
Block a user