1
0
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:
J. Nick Koston
2024-03-11 15:37:03 -10:00
committed by GitHub
parent ebd17687e0
commit 17b202d8cf
2 changed files with 2 additions and 2 deletions

View File

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