Hotfix executor pool size (#4552)

pull/4557/head
Pascal Vizeli 2016-11-23 18:52:03 +01:00 committed by Paulus Schoutsen
parent 5013a82655
commit c04a002c55
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class HomeAssistant(object):
else:
self.loop = loop or asyncio.get_event_loop()
self.executor = ThreadPoolExecutor(max_workers=5)
self.executor = ThreadPoolExecutor(max_workers=EXECUTOR_POOL_SIZE)
self.loop.set_default_executor(self.executor)
self.loop.set_exception_handler(self._async_exception_handler)
self._pending_tasks = []