mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix monoprice option flow test (#39685)
This commit is contained in:
parent
3022fc4702
commit
52c09396e0
@ -97,15 +97,16 @@ async def test_options_flow(hass):
|
|||||||
|
|
||||||
config_entry = MockConfigEntry(
|
config_entry = MockConfigEntry(
|
||||||
domain=DOMAIN,
|
domain=DOMAIN,
|
||||||
# unique_id="abcde12345",
|
|
||||||
data=conf,
|
data=conf,
|
||||||
# options={CONF_SHOW_ON_MAP: True},
|
|
||||||
)
|
)
|
||||||
config_entry.add_to_hass(hass)
|
config_entry.add_to_hass(hass)
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.monoprice.async_setup_entry", return_value=True
|
"homeassistant.components.monoprice.async_setup_entry", return_value=True
|
||||||
):
|
):
|
||||||
|
assert await hass.config_entries.async_setup(config_entry.entry_id)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
result = await hass.config_entries.options.async_init(config_entry.entry_id)
|
result = await hass.config_entries.options.async_init(config_entry.entry_id)
|
||||||
|
|
||||||
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
|
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user