-
Notifications
You must be signed in to change notification settings - Fork 729
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
Add Conecto TS0601 _TZE200_zppcgbdj
temperature & humidity
#3026
Conversation
The device is a Tuya rebrand, and the quirk is almost identical to one of the existing Tuya quirks (but with a different humidity multiplier).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3026 +/- ##
=======================================
Coverage 87.86% 87.86%
=======================================
Files 301 301
Lines 9219 9222 +3
=======================================
+ Hits 8100 8103 +3
Misses 1119 1119 ☔ View full report in Codecov by Sentry. |
The quirk is fine in general. Just some minor comments. |
Agreed, and implemented as suggested. |
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.
LGTM
The device is a rebranded Tuya temperature and humidity sensor, and the quirk is almost identical to one of the existing Tuya quirks (but with a different humidity multiplier). I am not sure if the device is also sold under other brand names, though I suppose that is quite likely. I figure it makes sense to put it in as a Tuya quirk.
Proposed change
This pull request adds the quirk immediately after the most similar existing quirk. It is almost identical, though if follows the standard set by the rest of the file when it comes to humidity multiplier (commented line containing the default value of 100).
Additional information
Fixes #3024
I do not have the development environment available to run formatting or adding tests. Given that this is essentially a copy-paste of the quirk before it, and it works in manual testing, I hope that is OK.
Checklist
pre-commit
checks pass / the code has been formatted using Black