[rotary_encoder] account for min value when resetting - #18197
Conversation
|
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#18197
components: [rotary_encoder]
refresh: 1h(Added by the PR bot) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #18197 +/- ##
==========================================
+ Coverage 87.28% 88.68% +1.39%
==========================================
Files 64 68 +4
Lines 14697 15363 +666
Branches 2217 2327 +110
==========================================
+ Hits 12829 13624 +795
+ Misses 1558 1428 -130
- Partials 310 311 +1 🚀 New features to boost your workflow:
|
Memory Impact AnalysisComponents:
📊 Component Memory Breakdown
🔍 Symbol-Level Changes (click to expand)Changed Symbols
This analysis runs automatically when components change. Memory usage is measured from a representative test configuration. |
|
|
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
PR Review — [rotary_encoder] account for min value when resettingMerge-ready. The one suggestion from the prior review has been adopted — reset now clamps against both ends of the range. What's solid:
Verified against the codebase:
✅ Resolved since last review (1)Previously-flagged issues verified fixed
Checklist
Automated review by Kōan (Claude) |
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
What does this implement/fix?
If the min value is greater than 0, then the reset pin sets an invalid value of 0.
Types of changes
Related issue or feature (if applicable):
Pull request in esphome.io with documentation (if applicable):
Pull request in developers.esphome.io with developer documentation (if applicable):
Test Environment
Example entry for
config.yaml:# Example config.yamlChecklist:
tests/folder).If user exposed functionality or configuration variables are added/changed: