forked from home-assistant/core
Ensure config entry oauth2 tests add config entry before updating it (#110421)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user