Mock async_setup_entry in BMW Connected Drive config flow test (#155446)

This commit is contained in:
Abílio Costa
2025-10-29 20:48:25 +01:00
committed by GitHub
parent 45558f3087
commit f2f769b34a

View File

@@ -274,10 +274,14 @@ async def test_reauth(hass: HomeAssistant) -> None:
async def test_reconfigure(hass: HomeAssistant) -> None:
"""Test the reconfiguration form."""
with patch(
BIMMER_CONNECTED_LOGIN_PATCH,
side_effect=login_sideeffect,
autospec=True,
with (
patch(
BIMMER_CONNECTED_LOGIN_PATCH, side_effect=login_sideeffect, autospec=True
),
patch(
"homeassistant.components.bmw_connected_drive.async_setup_entry",
return_value=True,
),
):
config_entry = MockConfigEntry(**FIXTURE_CONFIG_ENTRY)
config_entry.add_to_hass(hass)