Cleanup run_callback_threadsafe (#6187)

* Cleanup run_callback_threadsafe

* fix spell

* Revert image_processing, they need to wait for update
This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2017-02-23 12:57:25 -08:00
1 parent 1cd1facbd0
commit 106b7a9d8f
7 files changed
+15 -32

No files matched your search

@@ -108,8 +108,7 @@ class ImageProcessingFaceEntity(ImageProcessingEntity):
def process_faces(self, faces, total):
"""Send event with detected faces and store data."""
run_callback_threadsafe(
self.hass.loop, self.async_process_faces, faces, total
).result()
self.hass.loop, self.async_process_faces, faces, total).result()
@callback
def async_process_faces(self, faces, total):