Skip to content

Add Tuya write attribute button method #4154

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

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

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

codecov bot commented Jun 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.28%. Comparing base (79df871) to head (d51d816).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #4154   +/-   ##
=======================================
  Coverage   91.28%   91.28%           
=======================================
  Files         339      339           
  Lines       10967    10971    +4     
=======================================
+ Hits        10011    10015    +4     
  Misses        956      956           

☔ 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.

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