Skip to content

Commit

Permalink
Merge pull request #685 from henricm/update-flow-result-type-import
Browse files Browse the repository at this point in the history
feat(tests): update result type in config flow tests
  • Loading branch information
argoyle authored Dec 28, 2024
2 parents be2bdae + 51d70b5 commit fb7f67a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest import mock

from homeassistant import data_entry_flow
from homeassistant.data_entry_flow import FlowResultType
import pytest
from pytest_homeassistant_custom_component.common import MockConfigEntry

Expand Down Expand Up @@ -101,7 +102,7 @@ async def test_options_flow(hass, mqtt_mock):
CONF_INTERVAL: 20,
},
)
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["type"] == FlowResultType.CREATE_ENTRY
assert result["data"] == {
CONF_INTERVAL: 20,
}
Expand Down

0 comments on commit fb7f67a

Please sign in to comment.