-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -55,4 +50,4 @@ async def test_options_flow(hass): | |
assert result["data"] == { | ||
"never_session_specific": True, | ||
"enable_accumulative_energy": False, | ||
} | ||
} |