From e605b96d847fcdb2fb2acae835e233897a4624f1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 15:59:17 -0600 Subject: [PATCH] Ensure config entry oauth2 tests add config entry before updating it (#110421) --- tests/helpers/test_config_entry_oauth2_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/helpers/test_config_entry_oauth2_flow.py b/tests/helpers/test_config_entry_oauth2_flow.py index 0f4812082ee..d237c24f6f3 100644 --- a/tests/helpers/test_config_entry_oauth2_flow.py +++ b/tests/helpers/test_config_entry_oauth2_flow.py @@ -709,6 +709,7 @@ async def test_oauth_session( }, }, ) + config_entry.add_to_hass(hass) now = time.time() session = config_entry_oauth2_flow.OAuth2Session(hass, config_entry, local_impl) @@ -755,6 +756,7 @@ async def test_oauth_session_with_clock_slightly_out_of_sync( }, }, ) + config_entry.add_to_hass(hass) now = time.time() session = config_entry_oauth2_flow.OAuth2Session(hass, config_entry, local_impl)