Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix endianess issue with 8002 frames #114

Merged
merged 1 commit into from
Feb 7, 2022
Merged
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
4 changes: 2 additions & 2 deletions zigpy_zigate/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ def zigate_callback_handler(self, msg, response, lqi):
# self._pending_join.append(nwk)
elif msg == 0x8002:
if response[1] == 0x0 and response[2] == 0x13:
nwk = response[5].address
nwk = zigpy.types.NWK(response[5].address)
ieee = zigpy.types.EUI64(response[7][3:11])
parent_nwk = 0
self.handle_join(nwk, ieee, parent_nwk)
return
try:
if response[5].address_mode == t.ADDRESS_MODE.NWK:
device = self.get_device(nwk=response[5].address)
device = self.get_device(nwk = zigpy.types.NWK(response[5].address))
elif response[5].address_mode == t.ADDRESS_MODE.IEEE:
device = self.get_device(ieee=zigpy.types.EUI64(response[5].address))
else:
Expand Down