diff --git a/tests/components/google_assistant_sdk/test_init.py b/tests/components/google_assistant_sdk/test_init.py index de89d562d46e71..5aa68093627f42 100644 --- a/tests/components/google_assistant_sdk/test_init.py +++ b/tests/components/google_assistant_sdk/test_init.py @@ -131,7 +131,9 @@ async def test_send_text_command( assert len(entries) == 1 assert entries[0].state is ConfigEntryState.LOADED if configured_language_code: - entries[0].options = {"language_code": configured_language_code} + hass.config_entries.async_update_entry( + entries[0], options={"language_code": configured_language_code} + ) command = "turn on home assistant unsupported device" with patch( diff --git a/tests/components/google_assistant_sdk/test_notify.py b/tests/components/google_assistant_sdk/test_notify.py index cf3f90097ce0c1..3320bb944b2d8a 100644 --- a/tests/components/google_assistant_sdk/test_notify.py +++ b/tests/components/google_assistant_sdk/test_notify.py @@ -33,7 +33,9 @@ async def test_broadcast_no_targets( await setup_integration() entry = hass.config_entries.async_entries(DOMAIN)[0] - entry.options = {"language_code": language_code} + hass.config_entries.async_update_entry( + entry, options={"language_code": language_code} + ) with patch( "homeassistant.components.google_assistant_sdk.helpers.TextAssistant" @@ -87,7 +89,9 @@ async def test_broadcast_one_target( await setup_integration() entry = hass.config_entries.async_entries(DOMAIN)[0] - entry.options = {"language_code": language_code} + hass.config_entries.async_update_entry( + entry, options={"language_code": language_code} + ) with patch( "homeassistant.components.google_assistant_sdk.helpers.TextAssistant.assist",