-
Notifications
You must be signed in to change notification settings - Fork 740
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
Convert Sonoff buttons to v2 quirk #3050
Convert Sonoff buttons to v2 quirk #3050
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3050 +/- ##
==========================================
- Coverage 87.87% 87.85% -0.02%
==========================================
Files 301 300 -1
Lines 9226 9212 -14
==========================================
- Hits 8107 8093 -14
Misses 1119 1119 ☔ View full report in Codecov by Sentry. |
Why not convert these to v2 and forget the sig stuff? |
Right, perfect candidate for that. I'll convert this tomorrow. |
SNZB-01P
variantSNZB-01P
to v2 quirk
SNZB-01P
to v2 quirk
Codecov/project coverage decrease is expected, as a lot of code is removed. |
* Add Sonoff button `SNZB-01P` variant * Inherit `SonoffSmartButtonSNZB01P` to use existing device triggers * Initial v2 quirk conversion for Sonoff button * Remove signature test for Sonoff button * Also convert other Sonoff button to v2 * Merge Sonoff button quirks into one file * Combine both v2 quirks into one, use less strict device triggers
Proposed change
This converts both existing Sonoff button quirks to a combined v2 quirk. This way we can avoid adding other signature variations.
The "signature match test" is also removed, as it doesn't make much sense with a v2 quirk(?)
Additional information
Also addresses home-assistant/core#104548 (comment)
Checklist
pre-commit
checks pass / the code has been formatted using Black