Skip to content

Commit f2f769b

Browse files
authored
Mock async_setup_entry in BMW Connected Drive config flow test (#155446)
1 parent 45558f3 commit f2f769b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/components/bmw_connected_drive/test_config_flow.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,14 @@ async def test_reauth(hass: HomeAssistant) -> None:
274274

275275
async def test_reconfigure(hass: HomeAssistant) -> None:
276276
"""Test the reconfiguration form."""
277-
with patch(
278-
BIMMER_CONNECTED_LOGIN_PATCH,
279-
side_effect=login_sideeffect,
280-
autospec=True,
277+
with (
278+
patch(
279+
BIMMER_CONNECTED_LOGIN_PATCH, side_effect=login_sideeffect, autospec=True
280+
),
281+
patch(
282+
"homeassistant.components.bmw_connected_drive.async_setup_entry",
283+
return_value=True,
284+
),
281285
):
282286
config_entry = MockConfigEntry(**FIXTURE_CONFIG_ENTRY)
283287
config_entry.add_to_hass(hass)

0 commit comments

Comments
 (0)