From ab6e92f99696a8f5fab587dd56d07cc508c5b898 Mon Sep 17 00:00:00 2001
From: Franck Nijhof <git@frenck.dev>
Date: Thu, 30 Jun 2022 02:35:49 +0200
Subject: [PATCH] Patch out life360 entry setup in tests (#74212)

---
 tests/components/life360/test_config_flow.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/components/life360/test_config_flow.py b/tests/components/life360/test_config_flow.py
index 0b5b850ac23..c24852fddf7 100644
--- a/tests/components/life360/test_config_flow.py
+++ b/tests/components/life360/test_config_flow.py
@@ -118,7 +118,7 @@ async def test_user_show_form(hass, life360_api):
         assert keys[keys.index(key)].default == vol.UNDEFINED
 
 
-async def test_user_config_flow_success(hass, life360_api):
+async def test_user_config_flow_success(hass, life360_api, life360):
     """Test a successful user config flow."""
     result = await hass.config_entries.flow.async_init(
         DOMAIN, context={"source": config_entries.SOURCE_USER}
@@ -228,7 +228,7 @@ async def test_reauth_config_flow_success(hass, life360_api, caplog, state):
     assert config_entry.data == TEST_CONFIG_DATA_2
 
 
-async def test_reauth_config_flow_login_error(hass, life360_api, caplog):
+async def test_reauth_config_flow_login_error(hass, life360_api, life360, caplog):
     """Test a reauthorization config flow with a login error."""
     config_entry = create_config_entry(hass)
 
@@ -285,7 +285,7 @@ async def test_reauth_config_flow_login_error(hass, life360_api, caplog):
 # ========== Option flow Tests =========================================================
 
 
-async def test_options_flow(hass):
+async def test_options_flow(hass, life360):
     """Test an options flow."""
     config_entry = create_config_entry(hass)
 
-- 
GitLab