Skip to content

Commit

Permalink
Use new zigpy packet priority API
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 16, 2024
1 parent 0035116 commit 8dc2b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
license = {text = "GPL-3.0"}
requires-python = ">=3.8"
dependencies = [
"zigpy>=0.60.2",
"zigpy>=0.69.0",
"async_timeout",
"voluptuous",
"coloredlogs",
Expand Down
2 changes: 1 addition & 1 deletion zigpy_znp/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None:
# Don't release the concurrency-limiting semaphore until we are done trying.
# There is no point in allowing requests to take turns getting buffer errors.
try:
async with self._limit_concurrency():
async with self._limit_concurrency(priority=packet.priority):
for attempt in range(REQUEST_MAX_RETRIES):
try:
# ZDO requests do not generate `AF.DataConfirm` messages
Expand Down

0 comments on commit 8dc2b84

Please sign in to comment.