-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[lvgl] Fix image property processing #8691
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
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 fixes the image property processing for lvgl components by updating the image update configuration in tests and ensuring that the widget properties are processed asynchronously with consistent naming.
- Updated lvgl.image.update configuration in test files
- Renamed the angle validator to lv_angle and updated its usage in widget code
- Ensured asynchronous processing for pivot, angle, zoom, and antialias properties in image widgets
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/components/lvgl/lvgl-package.yaml | Added new test configurations for lvgl.image.update and tileview properties |
esphome/components/lvgl/widgets/img.py | Updated import and processing for angle, pivot, zoom, offset, and antialias properties to improve consistency |
Comments suppressed due to low confidence (2)
esphome/components/lvgl/widgets/img.py:13
- [nitpick] The updated import renaming 'angle' to 'lv_angle' improves clarity; please confirm that all related references and validations are updated consistently across the codebase.
from ..lv_validation import lv_angle, lv_bool, lv_image, size, zoom
esphome/components/lvgl/widgets/img.py:73
- Using asynchronous processing for the angle property with 'lv_angle.process' ensures consistency with other property handlers; ensure that the validator returns the expected type for downstream usage.
lv.img_set_angle(w.obj, await lv_angle.process(cf_angle))
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8691 +/- ##
==========================================
+ Coverage 53.70% 56.62% +2.91%
==========================================
Files 50 50
Lines 9408 9922 +514
Branches 1654 1340 -314
==========================================
+ Hits 5053 5618 +565
+ Misses 4056 3955 -101
- Partials 299 349 +50 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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#8691
components: [lvgl]
refresh: 1h (Added by the PR bot) |
What does this implement/fix?
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: