Skip to content

Commit d37ac29

Browse files
authored
Merge pull request #123 from pipiche38/patch-1
Fix `Mgmt_NWK_Update_req` ZDO converter when `ScanCount` is `None`
2 parents 3fe9823 + 2881d4e commit d37ac29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zigpy_znp/zigbee/zdo_converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
DstAddrMode=addr.mode,
186186
Channels=NwkUpdate.ScanChannels,
187187
ScanDuration=NwkUpdate.ScanDuration,
188-
ScanCount=NwkUpdate.ScanCount,
188+
ScanCount=NwkUpdate.ScanCount or 0x00,
189189
# XXX: nwkUpdateId is hard-coded to `_NIB.nwkUpdateId + 1`
190190
NwkManagerAddr=NwkUpdate.nwkManagerAddr or 0x0000,
191191
)

0 commit comments

Comments
 (0)