Skip to content

Commit

Permalink
Revert "And fix the tests"
Browse files Browse the repository at this point in the history
This reverts commit fa9e6cc.
  • Loading branch information
dan-r committed Apr 13, 2024
1 parent fa9e6cc commit 6cf3aa6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,18 @@ async def test_options_flow(hass):
entry.add_to_hass(hass)

flow = config_flow.OhmeOptionsFlow(entry)
result = await flow.async_step_init()
result = await config_entry_flow.async_init(
hass, flow, context={"source": "test"}, data={}
)

assert result["type"] == "form"
assert result["step_id"] == "init"
assert result["data_schema"] is not None

result = await flow.async_step_init(
result = await config_entry_flow.async_configure(
hass,
flow,
result["step_id"],
{
"email": "[email protected]",
"password": "password123",
Expand All @@ -50,4 +55,4 @@ async def test_options_flow(hass):
assert result["data"] == {
"never_session_specific": True,
"enable_accumulative_energy": False,
}
}

0 comments on commit 6cf3aa6

Please sign in to comment.