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

quirk for ts0603 garage door module #3607

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

rafmet
Copy link

@rafmet rafmet commented Dec 12, 2024

Proposed change

Added quirk for TS0603 _TZE608_fmemczv1

Additional information

Partially fixes #3263
Issue mentions both TS0603 by _TZE608_c75zqghm and TS0603 _TZE608_fmemczv1 but I don't have former one to verify if my quirk would work for it

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

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.86%. Comparing base (5f1a7f2) to head (af19875).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3607      +/-   ##
==========================================
+ Coverage   89.85%   89.86%   +0.01%     
==========================================
  Files         321      322       +1     
  Lines       10366    10379      +13     
==========================================
+ Hits         9314     9327      +13     
  Misses       1052     1052              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


(
TuyaQuirkBuilder("_TZE608_fmemczv1", "TS0603")
.tuya_onoff(dp_id=1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would a button be more appropriate here?

Copy link
Author

Choose a reason for hiding this comment

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

Probably 😄 This is my first quirk so it wasn't easy. I've searched the repo and there aren't many examples of exposing entity as button in Homeassistant. Finally I "invented" something working and hopefully it is acceptable 😄

@TheJulianJES TheJulianJES added Tuya Request/PR regarding a Tuya device needs review This PR should be reviewed soon, as it generally looks good. labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review This PR should be reviewed soon, as it generally looks good. Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Device Support Request] TS0603 by _TZE608_c75zqghm
4 participants