From 4fcf8280f6efd59dec63b00d49c0e2861417ae13 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 7 Jul 2022 12:31:19 +0200 Subject: [PATCH] Use FlowResultType enum in Tuya tests (#74596) --- tests/components/tuya/test_config_flow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/components/tuya/test_config_flow.py b/tests/components/tuya/test_config_flow.py index 46db598e1d8..82e7bfa4b51 100644 --- a/tests/components/tuya/test_config_flow.py +++ b/tests/components/tuya/test_config_flow.py @@ -84,7 +84,7 @@ async def test_user_flow( DOMAIN, context={"source": config_entries.SOURCE_USER} ) - assert result["type"] == data_entry_flow.RESULT_TYPE_FORM + assert result["type"] == data_entry_flow.FlowResultType.FORM assert result["step_id"] == "user" tuya().connect = MagicMock(side_effect=side_effects) @@ -95,7 +95,7 @@ async def test_user_flow( country = [country for country in TUYA_COUNTRIES if country.name == MOCK_COUNTRY][0] - assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY + assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY assert result["title"] == MOCK_USERNAME assert result["data"][CONF_ACCESS_ID] == MOCK_ACCESS_ID assert result["data"][CONF_ACCESS_SECRET] == MOCK_ACCESS_SECRET @@ -115,7 +115,7 @@ async def test_error_on_invalid_credentials(hass, tuya): DOMAIN, context={"source": config_entries.SOURCE_USER} ) - assert result["type"] == data_entry_flow.RESULT_TYPE_FORM + assert result["type"] == data_entry_flow.FlowResultType.FORM assert result["step_id"] == "user" tuya().connect = MagicMock(return_value=RESPONSE_ERROR)