Skip to content

Commit

Permalink
Update to use FlowResultType enums (#1446)
Browse files Browse the repository at this point in the history
From HA 2025.1 the constants have been removed
  • Loading branch information
drc38 authored Jan 5, 2025
1 parent 01b7cb1 commit e74c918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def test_successful_config_flow(hass, bypass_get_data):
)

# Check that the config flow shows the user form as the first step
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
assert result["type"] == data_entry_flow.FlowResultType.FORM
assert result["step_id"] == "user"

# If a user were to enter `test_username` for username and `test_password`
Expand All @@ -55,7 +55,7 @@ async def test_successful_config_flow(hass, bypass_get_data):

# Check that the config flow is complete and a new entry is created with
# the input data
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY
assert result["title"] == "test_csid"
assert result["data"] == MOCK_CONFIG_DATA
assert result["result"]
Expand Down

0 comments on commit e74c918

Please # to comment.