Merge pull request #4572 from home-assistant/release-0-33-4

0.33.4
This commit is contained in:
Paulus Schoutsen 2016-11-24 15:37:38 -08:00 committed by GitHub
commit 1872481f47
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"""Constants used by Home Assistant components."""
MAJOR_VERSION = 0
MINOR_VERSION = 33
PATCH_VERSION = '3'
PATCH_VERSION = '4'
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
REQUIRED_PYTHON_VER = (3, 4, 2)

View File

@ -56,7 +56,7 @@ SERVICE_CALL_LIMIT = 10 # seconds
ENTITY_ID_PATTERN = re.compile(r"^(\w+)\.(\w+)$")
# Size of a executor pool
EXECUTOR_POOL_SIZE = 15
EXECUTOR_POOL_SIZE = 10
# Time for cleanup internal pending tasks
TIME_INTERVAL_TASKS_CLEANUP = 10
@ -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 = []