Skip to content

Commit 39a2c87

Browse files
committed
Re-add accidentally removed code
1 parent ea2db60 commit 39a2c87

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bellows/zigbee/application.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)