Skip to content

Conversation

@TheJulianJES
Copy link
Collaborator

Proposed change

This adds a tuya_write_attr_button method to the TuyaQuirkBuilder to allow both mapping a Tuya DP to a (fake) ZCL attribute as well as adding a normal write_attr_button for that ZCL attribute.

Additional information

Related:

Semi-related TODOs:

  • add primary and unique_id to other Tuya methods
  • return Self type in TuyaQuirkBuilder and zigpy QuirkBuilder

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

@TheJulianJES TheJulianJES added the Tuya Request/PR regarding a Tuya device label Jun 29, 2025
@TheJulianJES TheJulianJES marked this pull request as draft June 29, 2025 01:43
@codecov
Copy link

codecov bot commented Jun 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.76%. Comparing base (79df871) to head (d51d816).
⚠️ Report is 96 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4154      +/-   ##
==========================================
+ Coverage   91.28%   91.76%   +0.48%     
==========================================
  Files         339      372      +33     
  Lines       10967    14954    +3987     
==========================================
+ Hits        10011    13723    +3712     
- Misses        956     1231     +275     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actions github-actions bot added the stale Issue is inactivate and might get closed soon label Dec 26, 2025
@github-actions github-actions bot closed this Jan 2, 2026
@TheJulianJES TheJulianJES reopened this Jan 2, 2026
@TheJulianJES TheJulianJES removed the stale Issue is inactivate and might get closed soon label Jan 2, 2026
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.

1 participant