File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,19 @@ async def start_network(self):
251251 self ._multicast = bellows .multicast .Multicast (ezsp )
252252 await self ._multicast .startup (ezsp_device )
253253
254+ if self ._config [zigpy .config .CONF_MAX_CONCURRENT_REQUESTS ] in (
255+ None ,
256+ zigpy .config .defaults .CONF_MAX_CONCURRENT_REQUESTS_DEFAULT ,
257+ ):
258+ max_concurrent_requests = await self ._ezsp .get_default_adapter_concurrency ()
259+ else :
260+ max_concurrent_requests = self ._config [
261+ zigpy .config .CONF_MAX_CONCURRENT_REQUESTS
262+ ]
263+
264+ LOGGER .debug ("Setting adapter concurrency to %d" , max_concurrent_requests )
265+ self ._concurrent_requests_semaphore .max_concurrency = max_concurrent_requests
266+
254267 backup = self .backups .most_recent_backup ()
255268 if backup is not None :
256269 await self ._restore_route_table (backup .network_info .route_table )
You can’t perform that action at this time.
0 commit comments