Determine how to run listeners at setup time instead of execution time (#41304)

This commit is contained in:
J. Nick Koston 2020-10-07 09:51:50 -05:00 committed by GitHub
parent 8d94dff75c
commit 9e1461da62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 216 additions and 119 deletions

View file

@ -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] == (