-
Notifications
You must be signed in to change notification settings - Fork 759
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 Tuya sirens to v2 quirks #3741
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3741 +/- ##
==========================================
+ Coverage 90.04% 90.08% +0.04%
==========================================
Files 321 320 -1
Lines 10442 10415 -27
==========================================
- Hits 9402 9382 -20
+ Misses 1040 1033 -7 ☔ View full report in Codecov by Sentry. |
zhaquirks/tuya/tuya_siren.py
Outdated
.tuya_enum( | ||
dp_id=101, | ||
attribute_name="power_type", | ||
enum_class=NeoBatteryState, | ||
translation_key="power_type", | ||
fallback_name="Power type", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a sensor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f5b13d8 should address this.
Proposed change
This converts the existing Tuya sirens to v2 and add some additional ones.
_TZE200_d0yu2xgi Based on: https://github.com/Koenkk/zigbee-herdsman-converters/blob/f42aa5080ee933e8cde9fc08c67a88bf886d71ff/src/devices/neo.ts#L13
_TZE200_t1blo2bj, _TZE204_t1blo2bj, and _TZE204_q76rtoa9 Based on: https://github.com/Koenkk/zigbee-herdsman-converters/blob/f42aa5080ee933e8cde9fc08c67a88bf886d71ff/src/devices/neo.ts#L48C91-L48C107
_TZE204_hcxvyxa5 Based on: https://github.com/Koenkk/zigbee-herdsman-converters/blob/f42aa5080ee933e8cde9fc08c67a88bf886d71ff/src/devices/tuya.ts#L12753
_TZE204_fncxk3ob and CBased on: https://github.com/Koenkk/zigbee-herdsman-converters/blob/f42aa5080ee933e8cde9fc08c67a88bf886d71ff/src/devices/tuya.ts#L10621C51-L10621C67
Additional information
Closes: #2300
Closes: #3180
Closes: #3545
Checklist
pre-commit
checks pass / the code has been formatted using Black