Use async_create_task (#15633)

* Use async_create_task

* Fix test
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-07-23 14:05:38 +02:00
1 parent 50b6c5948d
commit ea2ff6aae3
26 files changed
+50 -49

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ async def async_load_platform(hass, component, platform, discovered=None,
Use `listen_platform` to register a callback for these events.
Warning: Do not await this inside a setup method to avoid a dead lock.
Use `hass.async_add_job(async_load_platform(..))` instead.
Use `hass.async_create_task(async_load_platform(..))` instead.
This method is a coroutine.
"""