mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 14:30:22 +00:00
Remove usage of async_add_job in tests (#113259)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user