-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[online_image] Fix printf format; comment fixes #8607
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
Hey there @guillempages, 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.
Pull Request Overview
A fix focused on improving code quality for the online image component by correcting the printf format specifier and updating conditional directive comments.
- Update log message format specifier from "%d" to "%zu" to correctly reflect the size_t type of total_size.
- Update end-of-if comments to use the "USE_ONLINE_IMAGE_BMP_SUPPORT" and "USE_ONLINE_IMAGE_PNG_SUPPORT" macros for better clarity and consistency.
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#8607
components: [online_image]
refresh: 1h (Added by the PR bot) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8607 +/- ##
==========================================
+ Coverage 53.70% 56.64% +2.93%
==========================================
Files 50 50
Lines 9408 9907 +499
Branches 1654 1338 -316
==========================================
+ Hits 5053 5612 +559
+ Misses 4056 3946 -110
- 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.
Thanks! 🍻
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
:# Example config.yaml
Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: