mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
commit
1872481f47
@ -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)
|
||||
|
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user