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

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-07 16:51:50 +02:00
1 parent 8d94dff75c
commit 9e1461da62
7 files changed
+216 -119

No files matched your search

+1 -1
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] == (