Async cleanup part 3 (#4302)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2016-11-07 22:31:40 -08:00
1 parent 231ef40f53
commit 2e0c185740
10 files changed
+14 -15

No files matched your search

+1 -1
View File
@@ -146,4 +146,4 @@ class TorqueSensor(Entity):
def async_on_update(self, value):
"""Receive an update."""
self._state = value
self.hass.loop.create_task(self.async_update_ha_state())
self.hass.async_add_job(self.async_update_ha_state())