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

Consolidate all EZSP types #634

Merged
merged 34 commits into from
Jul 21, 2024
Merged

Consolidate all EZSP types #634

merged 34 commits into from
Jul 21, 2024

Conversation

puddly
Copy link
Contributor

@puddly puddly commented Jul 21, 2024

This PR removes all copy/pasted EZSP types from EZSP v4 through v14. This greatly reduces the amount of code and strips down the individual EZSP protocol handlers to just the basics: command definitions and version-specific operations.

A future PR will migrate all command structures to proper types with named parameters.

bellows unit tests don't really cover version-level command serialization and deserialization so there's a chance that some types are incorrect. Runtime tested with EZSP v8 and v13.

Copy link

codecov bot commented Jul 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.15%. Comparing base (c763b6b) to head (9f71062).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #634      +/-   ##
==========================================
- Coverage   99.38%   99.15%   -0.24%     
==========================================
  Files          79       50      -29     
  Lines        5047     3412    -1635     
==========================================
- Hits         5016     3383    -1633     
+ Misses         31       29       -2     

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

@puddly puddly merged commit 91b8f37 into zigpy:dev Jul 21, 2024
13 of 14 checks passed
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.

1 participant