Skip to content

Commit efc0c3c

Browse files
authored
Merge pull request #114 from zigbeefordomoticz/pr1
fix endianess issue with 8002 frames
2 parents 9fbe2d2 + 00761b2 commit efc0c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zigpy_zigate/zigbee/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ def zigate_callback_handler(self, msg, response, lqi):
119119
# self._pending_join.append(nwk)
120120
elif msg == 0x8002:
121121
if response[1] == 0x0 and response[2] == 0x13:
122-
nwk = response[5].address
122+
nwk = zigpy.types.NWK(response[5].address)
123123
ieee = zigpy.types.EUI64(response[7][3:11])
124124
parent_nwk = 0
125125
self.handle_join(nwk, ieee, parent_nwk)
126126
return
127127
try:
128128
if response[5].address_mode == t.ADDRESS_MODE.NWK:
129-
device = self.get_device(nwk=response[5].address)
129+
device = self.get_device(nwk = zigpy.types.NWK(response[5].address))
130130
elif response[5].address_mode == t.ADDRESS_MODE.IEEE:
131131
device = self.get_device(ieee=zigpy.types.EUI64(response[5].address))
132132
else:

0 commit comments

Comments
 (0)