mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Use async_update_entry to update esphome options in tests (#110118)
This commit is contained in:
parent
327e54cbfb
commit
b0d3cc150f
@ -91,7 +91,9 @@ async def test_esphome_device_service_calls_allowed(
|
|||||||
entity_info = []
|
entity_info = []
|
||||||
states = []
|
states = []
|
||||||
user_service = []
|
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(
|
device: MockESPHomeDevice = await mock_esphome_device(
|
||||||
mock_client=mock_client,
|
mock_client=mock_client,
|
||||||
entity_info=entity_info,
|
entity_info=entity_info,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user