mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Await discovery_function in the DiscoveryFlowHandler instead of wrapping it in a task (#113115)
Await discovery_function in the DiscoveryFlowHandler instead of wrapping This function was always a coro so it can be awaited directly instead of wrapping it in add_job
This commit is contained in:
@@ -404,6 +404,7 @@ async def test_webhook_create_cloudhook(
|
||||
|
||||
assert len(mock_delete.mock_calls) == 1
|
||||
assert result["require_restart"] is False
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def test_webhook_create_cloudhook_aborts_not_connected(
|
||||
|
||||
Reference in New Issue
Block a user