Search/replace RESULT_TYPE_* by FlowResultType enum (#74642)
This commit is contained in:
parent
68ccb96089
commit
7cd68381f1
237 changed files with 2284 additions and 2280 deletions
|
@ -230,7 +230,7 @@ async def test_show_zerconf_form(hass: HomeAssistant) -> None:
|
|||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY
|
||||
|
||||
|
||||
async def test_show_ssdp_form(hass: HomeAssistant) -> None:
|
||||
|
@ -296,7 +296,7 @@ async def test_show_ssdp_form(hass: HomeAssistant) -> None:
|
|||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY
|
||||
|
||||
|
||||
async def test_import_yaml(hass: HomeAssistant) -> None:
|
||||
|
@ -328,7 +328,7 @@ async def test_import_yaml(hass: HomeAssistant) -> None:
|
|||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY
|
||||
assert "errors" not in result
|
||||
|
||||
|
||||
|
@ -362,7 +362,7 @@ async def test_import_duplicate_yaml(hass: HomeAssistant) -> None:
|
|||
await hass.async_block_till_done()
|
||||
assert len(request_app_key.mock_calls) == 0
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
|
||||
assert result["type"] == data_entry_flow.FlowResultType.ABORT
|
||||
assert result["reason"] == "already_configured"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue