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

Add Conecto TS0601 _TZE200_zppcgbdj temperature & humidity #3026

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Add Conecto TS0601 _TZE200_zppcgbdj temperature & humidity #3026

merged 4 commits into from
Mar 20, 2024

Conversation

pianosaurus
Copy link
Contributor

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

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

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).
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.86%. Comparing base (86fafd6) to head (f9c87fa).

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.
📢 Have feedback on the report? Share it here.

@TheJulianJES TheJulianJES added the Tuya Request/PR regarding a Tuya device label Mar 8, 2024
zhaquirks/tuya/ts0601_sensor.py Outdated Show resolved Hide resolved
zhaquirks/tuya/ts0601_sensor.py Outdated Show resolved Hide resolved
zhaquirks/tuya/ts0601_sensor.py Outdated Show resolved Hide resolved
@javicalle
Copy link
Collaborator

The quirk is fine in general. Just some minor comments.

@pianosaurus
Copy link
Contributor Author

Agreed, and implemented as suggested.

Copy link
Collaborator

@javicalle javicalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheJulianJES TheJulianJES merged commit 2ae997f into zigpy:dev Mar 20, 2024
6 checks passed
lgraf pushed a commit to lgraf/zha-device-handlers that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Device Support Request] TS0601 _TZE200_zppcgbdj (Conecto temperature/humidity with display)
3 participants