mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Determine how to run listeners at setup time instead of execution time (#41304)
This commit is contained in:
@@ -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] == (
|
||||
|
||||
Reference in New Issue
Block a user