Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e605b96

Browse files
authored
Ensure config entry oauth2 tests add config entry before updating it (home-assistant#110421)
1 parent d9c581e commit e605b96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎tests/helpers/test_config_entry_oauth2_flow.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ async def test_oauth_session(
709709
},
710710
},
711711
)
712+
config_entry.add_to_hass(hass)
712713

713714
now = time.time()
714715
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(
755756
},
756757
},
757758
)
759+
config_entry.add_to_hass(hass)
758760

759761
now = time.time()
760762
session = config_entry_oauth2_flow.OAuth2Session(hass, config_entry, local_impl)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /