Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/application/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
@pytest.mark.parametrize("device", FORMED_DEVICES)
async def test_zigpy_request(device, make_application):
app, znp_server = make_application(device)
await app.startup(auto_form=False)

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.11

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.11

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.13

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 51 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.13

test_zigpy_request[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

TSN = 1

Expand Down Expand Up @@ -108,7 +108,7 @@
@pytest.mark.parametrize("device", FORMED_DEVICES)
async def test_zigpy_request_failure(device, make_application, mocker):
app, znp_server = make_application(device)
await app.startup(auto_form=False)

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request_failure[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request_failure[FormedZStack1CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.14

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.11

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.11

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.11

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.11

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.13

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.13

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.13

test_zigpy_request_failure[FormedZStack3CC2531] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

Check failure on line 111 in tests/application/test_requests.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.13

test_zigpy_request_failure[FormedLaunchpadCC26X2R1] zigpy_znp.exceptions.CommandNotRecognized: Fatal request error RPCError.CommandNotRecognized.Rsp(ErrorCode=<ErrorCode.InvalidCommandId: 2>, RequestHeader=CommandHeader(id=0x02, subsystem=Subsystem.AF, type=CommandType.SREQ)) in response to AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.Broadcast: 15>, address=0xFFFD), DstEndpoint=242, DstPanId=0x0000, SrcEndpoint=242, ClusterId=33, TSN=1, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x19\x01\x02\x08')

TSN = 1

Expand Down Expand Up @@ -534,7 +534,10 @@


@pytest.mark.parametrize("device", [FormedLaunchpadCC26X2R1])
async def test_request_recovery_route_rediscovery_af(device, make_application, mocker):
@pytest.mark.parametrize("failure", [t.Status.NWK_NO_ROUTE, t.Status.APS_NO_ACK])
async def test_request_recovery_route_rediscovery_af(
device, failure, make_application, mocker
):
app, znp_server = make_application(server_cls=device)

await app.startup(auto_form=False)
Expand All @@ -552,7 +555,7 @@
nonlocal route_discovered

return c.AF.DataConfirm.Callback(
Status=t.Status.SUCCESS if route_discovered else t.Status.NWK_NO_ROUTE,
Status=t.Status.SUCCESS if route_discovered else failure,
Endpoint=1,
TSN=1,
)
Expand Down
7 changes: 5 additions & 2 deletions zigpy_znp/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,9 +986,12 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None:
continue

# Perform route discovery explicitly if the stack fails and
# then retry the request
# then retry the request. `APS_NO_ACK` is included because a
# stale next hop can still MAC-ACK without forwarding, and the
# stack reports no `NWK_NO_ROUTE` in that case.
if (
e.response.Status == t.Status.NWK_NO_ROUTE
e.response.Status
in (t.Status.NWK_NO_ROUTE, t.Status.APS_NO_ACK)
and device is not None
and retry_attempt < 1
):
Expand Down
Loading