Skip to content

Commit 0777cc7

Browse files
committed
parent 824c2b2
author PrairieSnpr <[email protected]> 1663370925 -0400 committer PrairieSnpr <[email protected]> 1663373175 -0400 If newer zstack use xbee src end point if selected Format with black Bug fix Bug fix Bug Fix Format with black Bug Fix
1 parent 824c2b2 commit 0777cc7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

zigpy_znp/const.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@
2626

2727
# Used only when creating a temporary network during formation
2828
STARTUP_CHANNELS = t.Channels.from_channel_list([15, 20, 25])
29+
30+
XBEE_AT_ENDPOINT = 0xE6
31+
XBEE_DATA_ENDPOINT = 0xE8

zigpy_znp/zigbee/application.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,10 @@ def _find_endpoint(self, dst_ep: int, profile: int, cluster: int) -> int:
913913

914914
# Newer Z-Stack releases ignore profiles and will work properly with endpoint 1
915915
if self._zstack_build_id >= 20210708:
916+
if dst_ep == const.XBEE_AT_ENDPOINT:
917+
return const.XBEE_AT_ENDPOINT
918+
if dst_ep == const.XBEE_DATA_ENDPOINT:
919+
return const.XBEE_DATA_ENDPOINT
916920
return ZHA_ENDPOINT
917921

918922
# Always fall back to endpoint 1

0 commit comments

Comments
 (0)