Use async_update_entry in github tests (#110119)

needed for #110023
This commit is contained in:
J. Nick Koston 2024-02-09 11:11:05 -06:00 committed by GitHub
parent 14715c150e
commit facf927626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 11 deletions

View file

@ -25,7 +25,10 @@ async def test_entry_diagnostics(
aioclient_mock: AiohttpClientMocker,
) -> None:
"""Test config entry diagnostics."""
mock_config_entry.options = {CONF_REPOSITORIES: ["home-assistant/core"]}
hass.config_entries.async_update_entry(
mock_config_entry,
options={CONF_REPOSITORIES: ["home-assistant/core"]},
)
response_json = json.loads(load_fixture("graphql.json", DOMAIN))
response_json["data"]["repository"]["full_name"] = "home-assistant/core"