Skip to content

Commit

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

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

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

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

0 comments on commit fa9e6cc

Please sign in to comment.