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)