mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Limit worker pool to 10 threads (#3560)
* Limit worker pool to 10 threads * Comment evdev in requirements * Allow skipping RFXtrx tests locally * Fix worker pool size tests * lol whut
This commit is contained in:
@@ -118,7 +118,8 @@ def _setup_component(hass: core.HomeAssistant, domain: str, config) -> bool:
|
||||
|
||||
# Assumption: if a component does not depend on groups
|
||||
# it communicates with devices
|
||||
if 'group' not in getattr(component, 'DEPENDENCIES', []):
|
||||
if 'group' not in getattr(component, 'DEPENDENCIES', []) and \
|
||||
hass.pool.worker_count <= 10:
|
||||
hass.pool.add_worker()
|
||||
|
||||
hass.bus.fire(
|
||||
|
||||
Reference in New Issue
Block a user