[combination] Fix 'coeffecient' typo with backward-compatible deprecation#14004
[combination] Fix 'coeffecient' typo with backward-compatible deprecation#14004swoboda1337 merged 1 commit intoesphome:devfrom
Conversation
…cient' key The combination sensor component had a typo in the config key 'coeffecient' (missing 'i'). This adds the correct 'coefficient' spelling while keeping backward compatibility with the old spelling via a deprecation warning. Closes esphome#14003 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
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#14004
components: [combination]
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 #14004 +/- ##
=======================================
Coverage 74.08% 74.08%
=======================================
Files 55 55
Lines 11588 11588
Branches 1577 1577
=======================================
Hits 8585 8585
Misses 2600 2600
Partials 403 403 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Memory Impact AnalysisComponents:
This analysis runs automatically when components change. Memory usage is measured from a representative test configuration. |
|
Thanks |
…tion (#14004) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
What does this implement/fix?
Fix the typo
coeffecient(missing 'i') in the combination sensor's linear type config key. The correct spellingcoefficientis now accepted, while the oldcoeffecientspelling continues to work with a deprecation warning. Also fixes the typo in a C++ comment.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: