Determine how to run listeners at setup time instead of execution time (#41304)
This commit is contained in:
parent
8d94dff75c
commit
9e1461da62
7 changed files with 216 additions and 119 deletions
|
@ -269,7 +269,7 @@ async def test_turn_on_to_not_block_for_domains_without_service(hass):
|
|||
"homeassistant.core.ServiceRegistry.async_call",
|
||||
return_value=None,
|
||||
) as mock_call:
|
||||
await service.func(service_call)
|
||||
await service.job.target(service_call)
|
||||
|
||||
assert mock_call.call_count == 2
|
||||
assert mock_call.call_args_list[0][0] == (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue