Ensure github tests add config entry before updating it (#110430)
This commit is contained in:
parent
704ad67917
commit
0e1cdc1f79
4 changed files with 20 additions and 6 deletions
|
@ -25,6 +25,7 @@ async def test_entry_diagnostics(
|
|||
aioclient_mock: AiohttpClientMocker,
|
||||
) -> None:
|
||||
"""Test config entry diagnostics."""
|
||||
mock_config_entry.add_to_hass(hass)
|
||||
hass.config_entries.async_update_entry(
|
||||
mock_config_entry,
|
||||
options={CONF_REPOSITORIES: ["home-assistant/core"]},
|
||||
|
@ -43,7 +44,9 @@ async def test_entry_diagnostics(
|
|||
headers={"Content-Type": "application/json"},
|
||||
)
|
||||
|
||||
await setup_github_integration(hass, mock_config_entry, aioclient_mock)
|
||||
await setup_github_integration(
|
||||
hass, mock_config_entry, aioclient_mock, add_entry_to_hass=False
|
||||
)
|
||||
result = await get_diagnostics_for_config_entry(
|
||||
hass,
|
||||
hass_client,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue