Skip to content

Commit

Permalink
Fix ZGP profile and endpoint handling (#235)
Browse files Browse the repository at this point in the history
* Fix ZGP profile and endpoint handling

* Linter

---------

Co-authored-by: Conrad Kreyling <conrad@kreyling.biz>
  • Loading branch information
Conrad Kreyling and konistehrad authored Dec 11, 2023
1 parent 9c664a1 commit 8b86f67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zigpy_znp/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,9 @@ def _find_endpoint(self, dst_ep: int, profile: int, cluster: int) -> int:
if dst_ep == ZDO_ENDPOINT:
return ZDO_ENDPOINT

if profile == zigpy.profiles.zgp.PROFILE_ID:
return zigpy.profiles.zgp.GREENPOWER_ENDPOINT_ID

# Newer Z-Stack releases ignore profiles and will work properly with endpoint 1
if (
self._zstack_build_id >= 20210708
Expand Down

0 comments on commit 8b86f67

Please sign in to comment.