self.loop.create_task -> self.add_job (#6632)

* self.loop.create_task -> self.add_job

* Core to use create task
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2017-03-16 06:58:54 +01:00
1 parent 5b3dc7f2a5
commit e265401cd0
13 files changed
+16 -15

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ class HomeAssistant(object):
def start(self) -> None:
"""Start home assistant."""
# Register the async start
self.loop.create_task(self.async_start())
self.add_job(self.async_start())
# Run forever and catch keyboard interrupt
try: