From 03dc152f80fc81c34660b79f7a2d6da04ef744e3 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:15:09 -0400 Subject: [PATCH] Use the new zigpy packet priority attribute (#651) * Use packet priority * Bump minimum zigpy version --- bellows/zigbee/application.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bellows/zigbee/application.py b/bellows/zigbee/application.py index 08a1169e..0680184e 100644 --- a/bellows/zigbee/application.py +++ b/bellows/zigbee/application.py @@ -741,7 +741,7 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None: # Source routing uses address discovery to discover routes aps_frame.options |= t.EmberApsOption.APS_OPTION_ENABLE_ADDRESS_DISCOVERY - async with self._limit_concurrency(): + async with self._limit_concurrency(priority=packet.priority): message_tag = self.get_sequence() pending_tag = (packet.dst.address, message_tag) with self._pending.new(pending_tag) as req: diff --git a/pyproject.toml b/pyproject.toml index 4868f586..b76bf157 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "click-log>=0.2.1", "pure_pcapy3==1.0.1", "voluptuous", - "zigpy>=0.65.3", + "zigpy>=0.68.0", 'async-timeout; python_version<"3.11"', ]