[mitsubishi_cn105] use HEAT_COOL mode to enable temperature slider#15748
Conversation
…temperature slider
|
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#15748
components: [mitsubishi_cn105]
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 #15748 +/- ##
=======================================
Coverage 76.42% 76.42%
=======================================
Files 58 58
Lines 12643 12643
Branches 1772 1772
=======================================
Hits 9662 9662
Misses 2556 2556
Partials 425 425 ☔ View full report in Codecov by Sentry. 🚀 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.
Pull request overview
Updates the Mitsubishi CN105 climate component to represent the unit’s built-in “AUTO” (auto-changeover) mode as Home Assistant’s HEAT_COOL mode so HA will allow setting a single target temperature via the UI.
Changes:
- Remap
MitsubishiCN105::Mode::AUTOfromCLIMATE_MODE_AUTOtoCLIMATE_MODE_HEAT_COOL. - Refactor
traits()to derive supported HVAC/fan modes directly from the mode maps (avoids duplicating lists).
|
Thanks @crnjan |
What does this implement/fix?
Changes
AUTOmode as defined by Mitsubishi to match HA definition -HEAT_COOL.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:# no changesChecklist:
tests/folder).If user exposed functionality or configuration variables are added/changed: