From 5ae3f9d8852653beb59ca3792f5c511a4875b1c8 Mon Sep 17 00:00:00 2001 From: "Frederik (P0x00)" Date: Sun, 9 Aug 2026 23:34:18 -0500 Subject: [PATCH] Fix: mark MgmtRtgRsp.Routes optional to prevent frame-processing crash on NOT_SUPPORTED status --- zigpy_znp/commands/zdo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zigpy_znp/commands/zdo.py b/zigpy_znp/commands/zdo.py index 6c1abbe6..982ee5f8 100644 --- a/zigpy_znp/commands/zdo.py +++ b/zigpy_znp/commands/zdo.py @@ -1194,7 +1194,7 @@ class ZDO(t.CommandsBase, subsystem=t.Subsystem.ZDO): t.Param( "Status", t.ZDOStatus, "Status is either Success (0) or Failure (1)" ), - t.Param("Routes", zigpy.zdo.types.Routes, "Routes"), + t.Param("Routes", zigpy.zdo.types.Routes, "Routes", optional=True), ), )