From cb242820405149267bbad2dc2045127ed5d09918 Mon Sep 17 00:00:00 2001 From: pvizeli Date: Mon, 14 Nov 2016 14:18:04 +0100 Subject: [PATCH] Faster async entity update on component. --- homeassistant/helpers/entity_component.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity_component.py b/homeassistant/helpers/entity_component.py index 790b9399201..cd49a5e237e 100644 --- a/homeassistant/helpers/entity_component.py +++ b/homeassistant/helpers/entity_component.py @@ -377,7 +377,8 @@ class EntityPlatform(object): update_coro = entity.async_update_ha_state(True) if hasattr(entity, 'async_update'): - tasks.append(update_coro) + tasks.append( + self.component.hass.loop.create_task(update_coro)) else: to_update.append(update_coro)