From b0d3cc150fd7a42d9714e3de6de54ba8bc827eae Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Feb 2024 20:01:33 -0600 Subject: [PATCH] Use async_update_entry to update esphome options in tests (#110118) --- tests/components/esphome/test_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/esphome/test_manager.py b/tests/components/esphome/test_manager.py index e3b5c2aa08d..9a0a2b08beb 100644 --- a/tests/components/esphome/test_manager.py +++ b/tests/components/esphome/test_manager.py @@ -91,7 +91,9 @@ async def test_esphome_device_service_calls_allowed( entity_info = [] states = [] user_service = [] - mock_config_entry.options = {CONF_ALLOW_SERVICE_CALLS: True} + hass.config_entries.async_update_entry( + mock_config_entry, options={CONF_ALLOW_SERVICE_CALLS: True} + ) device: MockESPHomeDevice = await mock_esphome_device( mock_client=mock_client, entity_info=entity_info,