Fix monoprice option flow test (#39685)

This commit is contained in:
Martin Hjelmare 2020-09-05 15:25:22 +02:00 committed by GitHub
parent 3022fc4702
commit 52c09396e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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