-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[nextion] Add publish actions #7646
Conversation
Hey there @edwardtfn, @SenexCrenshaw, mind taking a look at this pull request as it has been labeled with an integration ( |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #7646 +/- ##
==========================================
+ Coverage 53.70% 53.76% +0.05%
==========================================
Files 50 50
Lines 9408 9805 +397
Branches 1654 1354 -300
==========================================
+ Hits 5053 5272 +219
- Misses 4056 4207 +151
- Partials 299 326 +27 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
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.
LGTM -- @edwardtfn any thoughts/comments?
It looks awesome. |
One final thought/request @pkejval -- please update the tests for this component to include these actions. |
I wrote some tests but I have no idea how to run them. Cannot find any documentation about it. Can you give me advice, please? |
From the root of the repo: |
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.
Fixes so tests will work
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
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.
Fix binary sensor IDs in tests
on_page: | ||
then: | ||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);' | ||
wifi: !remove |
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.
HTTP client requires wifi
Hey there @SenexCrenshaw, mind taking a look at this pull request as it has been labeled with an integration ( |
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.
LGTM -- thanks!
bc4b8b2
to
bb00644
Compare
What does this implement/fix?
Adds YAML actions for publishing states of various Nextion sensors. This functionality was available only in lambdas.
Types of changes
Related issue or feature (if applicable):
none
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: