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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 22 additions and 22 deletions

View file

@ -250,7 +250,7 @@ for index, value in enumerate(["earth", "mars"]):
hass.states.set('hello.{}'.format(index), value)
"""
hass.async_add_job(execute, hass, "test.py", source, {})
await hass.async_add_executor_job(execute, hass, "test.py", source, {})
await hass.async_block_till_done()
assert hass.states.is_state("hello.0", "earth")