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:
1 parent
5b3dc7f2a5
commit
e265401cd0
13 files changed
+16
-15
No files matched your search
@@ -419,7 +419,7 @@ class EntityPlatform(object):
|
||||
update_coro = entity.async_update_ha_state(True)
|
||||
if hasattr(entity, 'async_update'):
|
||||
tasks.append(
|
||||
self.component.hass.loop.create_task(update_coro))
|
||||
self.component.hass.async_add_job(update_coro))
|
||||
else:
|
||||
to_update.append(update_coro)
|
||||
|
||||
|
||||
Reference in new issue
Block a user