-
Notifications
You must be signed in to change notification settings - Fork 40
Implement quirks v2 attribute_converter
#360
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
Implement quirks v2 attribute_converter
#360
Conversation
Depends on the following PRs: - zigpy/zigpy#1540 - zigpy/zha#360
0b93b23
to
8434f19
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #360 +/- ##
=======================================
Coverage 96.58% 96.58%
=======================================
Files 61 61
Lines 9514 9526 +12
=======================================
+ Hits 9189 9201 +12
Misses 325 325 ☔ View full report in Codecov by Sentry. |
This should be ready to review too now. No official quirks will use it with HA 2025.2.0 yet, but it'll allow development for new ones to be easier. There are some changes in |
Depends on the following PRs: - zigpy/zigpy#1540 - zigpy/zha#360
Proposed change
This adds an
attribute_converter
to the following quirk v2 platforms:This will allow us to parse a ZCL attribute value in quirks, before passing it to the HA state.
This is mostly needed for binary sensors.
Additional information
Corresponding zigpy PR:
attribute_converter
to quirks v2 sensors zigpy#1540Closes: