Use async_update_entry to update esphome options in tests (#110118)

pull/110191/head
J. Nick Koston 2024-02-09 20:01:33 -06:00 committed by GitHub
parent 327e54cbfb
commit b0d3cc150f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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,