1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Remove usage of async_add_job in tests (#113259)

This commit is contained in:
J. Nick Koston
2024-03-13 19:33:33 -10:00
committed by GitHub
parent c3b5e819c5
commit c1f5c7c4b7
11 changed files with 22 additions and 22 deletions

View File

@@ -342,6 +342,6 @@ async def test_done_message_state_tracker_reset_on_cancel(hass: HomeAssistant) -
entity._cancel = lambda *args: None
assert entity._send_done_message is False
entity._send_done_message = True
hass.async_add_job(entity.end_alerting)
await entity.end_alerting()
await hass.async_block_till_done()
assert entity._send_done_message is False