-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Tuya Select - Add int_datapoint option #8393
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
Conversation
…ion on top of existing enum, default to enum
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8393 +/- ##
==========================================
+ Coverage 53.70% 56.61% +2.90%
==========================================
Files 50 50
Lines 9408 9921 +513
Branches 1654 1340 -314
==========================================
+ Hits 5053 5617 +564
+ Misses 4056 3955 -101
- Partials 299 349 +50 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Looks good. Thanks)
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Allow configuration of backing data type for Tuya Select, expanding from
enum
to also allowingint
What does this implement/fix?
While Tuya has an enum type, it sometimes uses int in the same way for multi-option states. This allows sending the value as int instead of enum, if that is the backing type of the MCU. Defaults to previous behavior of
enum
Types of changes
Related issue or feature (if applicable):
Pull request in esphome-docs with documentation (if applicable):
Test Environment
Example entry for
config.yaml
:Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: