Skip to content

Commit adc2b54

Browse files
committed
Explicitly ignore requests, some commands below 0x8000 are announcements
#109 (comment)
1 parent 5e14aef commit adc2b54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zigpy_znp/zigbee/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ async def _startup(self, auto_form=False, force_form=False, read_only=False):
269269

270270
# Receive a callback for every known ZDO command
271271
for cluster_id in zdo_t.ZDOCmd:
272-
# Ignore ZDO requests
273-
if cluster_id < 0x8000:
272+
# Ignore outgoing ZDO requests, only receive announcements and responses
273+
if cluster_id.name.endswith(("_req", "_set")):
274274
continue
275275

276276
await self._znp.request(c.ZDO.MsgCallbackRegister.Req(ClusterId=cluster_id))

0 commit comments

Comments
 (0)