From f2f769b34a9b41427f6130d7caab5c2df5a4d970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Wed, 29 Oct 2025 20:48:25 +0100 Subject: [PATCH] Mock async_setup_entry in BMW Connected Drive config flow test (#155446) --- .../bmw_connected_drive/test_config_flow.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/components/bmw_connected_drive/test_config_flow.py b/tests/components/bmw_connected_drive/test_config_flow.py index 2d4b1390ccc..9c63ecbf305 100644 --- a/tests/components/bmw_connected_drive/test_config_flow.py +++ b/tests/components/bmw_connected_drive/test_config_flow.py @@ -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)