From 52c09396e004e3fb2f414c94fae08bfd097bde36 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sat, 5 Sep 2020 15:25:22 +0200 Subject: [PATCH] Fix monoprice option flow test (#39685) --- tests/components/monoprice/test_config_flow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/components/monoprice/test_config_flow.py b/tests/components/monoprice/test_config_flow.py index 49a7ed27e5a..e2aae6eddaa 100644 --- a/tests/components/monoprice/test_config_flow.py +++ b/tests/components/monoprice/test_config_flow.py @@ -97,15 +97,16 @@ async def test_options_flow(hass): config_entry = MockConfigEntry( domain=DOMAIN, - # unique_id="abcde12345", data=conf, - # options={CONF_SHOW_ON_MAP: True}, ) config_entry.add_to_hass(hass) with patch( "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) assert result["type"] == data_entry_flow.RESULT_TYPE_FORM