Skip to content

Commit 8b86f67

Browse files
Conrad Kreylingkonistehrad
Conrad Kreyling
andauthored
Fix ZGP profile and endpoint handling (#235)
* Fix ZGP profile and endpoint handling * Linter --------- Co-authored-by: Conrad Kreyling <[email protected]>
1 parent 9c664a1 commit 8b86f67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zigpy_znp/zigbee/application.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,9 @@ def _find_endpoint(self, dst_ep: int, profile: int, cluster: int) -> int:
692692
if dst_ep == ZDO_ENDPOINT:
693693
return ZDO_ENDPOINT
694694

695+
if profile == zigpy.profiles.zgp.PROFILE_ID:
696+
return zigpy.profiles.zgp.GREENPOWER_ENDPOINT_ID
697+
695698
# Newer Z-Stack releases ignore profiles and will work properly with endpoint 1
696699
if (
697700
self._zstack_build_id >= 20210708

0 commit comments

Comments
 (0)