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

Reuse ZDO Initializers to create Endpoint objects on EZSP device #599

Merged
merged 7 commits into from
Dec 30, 2023

Conversation

konistehrad
Copy link
Contributor

We need access to a real GP Cluster type for parsing the incoming frames, but EZSP doesn't support polling the device for current endpoints. Instead, reuse the old ZDO initializers and assume the device state matches the requested ZDO descriptors.

Copy link

codecov bot commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f9f4c3f) 99.75% compared to head (6e369fd) 99.73%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #599      +/-   ##
==========================================
- Coverage   99.75%   99.73%   -0.02%     
==========================================
  Files          74       74              
  Lines        4966     4985      +19     
==========================================
+ Hits         4954     4972      +18     
- Misses         12       13       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@konistehrad
Copy link
Contributor Author

Not sure what to do about codecov here; the endpoint initializer is async but the application fixture looks to be synchronous and everywhere. Happy to fix it, but I'll need a little handholding.

@konistehrad
Copy link
Contributor Author

I used this patch on the green power test net for a couple days and everything seems 100%. Thanks again for the cleanup job.

@puddly puddly merged commit 758803d into zigpy:dev Dec 30, 2023
13 of 14 checks passed
@konistehrad konistehrad deleted the zgp branch December 30, 2023 22:20
@konistehrad
Copy link
Contributor Author

You love to see it. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants