-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[cst226] Add support for cst226 binary sensor #8381
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8381 +/- ##
==========================================
+ Coverage 53.70% 56.64% +2.93%
==========================================
Files 50 50
Lines 9408 9922 +514
Branches 1654 1340 -314
==========================================
+ Hits 5053 5620 +567
+ Misses 4056 3954 -102
- Partials 299 348 +49 ☔ 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.
Pull Request Overview
This PR adds support for the CST226 binary sensor to enable handling of an off-screen touch button.
- Adds a new binary sensor configuration in the test YAML
- Introduces the binary sensor component implementation under esphome/components/cst226/binary_sensor
Reviewed Changes
Copilot reviewed 2 out of 6 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/components/cst226/common.yaml | Adds test configuration for the CST226 binary sensor |
esphome/components/cst226/binary_sensor/init.py | Implements the binary sensor component for CST226 |
Files not reviewed (4)
- esphome/components/cst226/binary_sensor/cs226_button.h: Language not supported
- esphome/components/cst226/binary_sensor/cstt6_button.cpp: Language not supported
- esphome/components/cst226/touchscreen/cst226_touchscreen.cpp: Language not supported
- esphome/components/cst226/touchscreen/cst226_touchscreen.h: Language not supported
To use the changes from this PR as an external component, add the following to your ESPHome configuration YAML file: external_components:
- source: github://pr#8381
components: [cst226]
refresh: 1h (Added by the PR bot) |
What does this implement/fix?
The CST226 touch controller also supports an off-screen touch button. Add support for it.
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: