Skip to content

Rename water_heater dicts - #908

Draft
bouwew wants to merge 18 commits into
mainfrom
wh-3
Draft

Rename water_heater dicts#908
bouwew wants to merge 18 commits into
mainfrom
wh-3

Conversation

@bouwew

@bouwew bouwew commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Standardized boiler and domestic hot-water temperature data under clearer, consistent names.
    • Preserved existing temperature readings, limits, and control behavior.
    • Updated temperature controls to use the standardized data fields.
  • Bug Fixes

    • Improved handling of domestic hot-water modes and nested temperature data across heating and cooling configurations.
    • Ensured active temperature controls are recognized consistently across supported devices.
  • Tests

    • Updated coverage and sample data to validate consistent temperature handling across supported devices.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@bouwew, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3d981dc3-0e8c-4802-869f-d157662ee2a1

📥 Commits

Reviewing files that changed from the base of the PR and between f3c5ca4 and dd537f1.

📒 Files selected for processing (59)
  • CHANGELOG.md
  • fixtures/adam_bad_thermostat/data.json
  • fixtures/adam_heatpump_cooling/data.json
  • fixtures/adam_jip/data.json
  • fixtures/adam_onoff_cooling_fake_firmware/data.json
  • fixtures/adam_plus_anna/data.json
  • fixtures/adam_plus_anna_new/data.json
  • fixtures/adam_plus_anna_new_regulation_off/data.json
  • fixtures/anna_elga_2_cooling/data.json
  • fixtures/anna_elga_2_schedule_off/data.json
  • fixtures/anna_elga_no_cooling/data.json
  • fixtures/anna_heatpump_cooling/data.json
  • fixtures/anna_heatpump_cooling_fake_firmware/data.json
  • fixtures/anna_heatpump_heating/data.json
  • fixtures/anna_loria_cooling_active/data.json
  • fixtures/anna_loria_driessens/data.json
  • fixtures/anna_loria_heating_idle/data.json
  • fixtures/anna_v4/data.json
  • fixtures/anna_v4_dhw/data.json
  • fixtures/anna_v4_no_tag/data.json
  • fixtures/legacy_anna/data.json
  • fixtures/legacy_anna_2/data.json
  • fixtures/m_adam_cooling/data.json
  • fixtures/m_adam_heating/data.json
  • fixtures/m_adam_heating_off_schedule/data.json
  • fixtures/m_adam_jip/data.json
  • fixtures/m_anna_heatpump_cooling/data.json
  • fixtures/m_anna_heatpump_idle/data.json
  • plugwise/common.py
  • plugwise/constants.py
  • plugwise/data.py
  • plugwise/legacy/helper.py
  • plugwise/smile.py
  • scripts/manual_fixtures.py
  • tests/data/adam/adam_bad_thermostat.json
  • tests/data/adam/adam_heatpump_cooling.json
  • tests/data/adam/adam_jip.json
  • tests/data/adam/adam_onoff_cooling_fake_firmware.json
  • tests/data/adam/adam_plus_anna.json
  • tests/data/adam/adam_plus_anna_new.json
  • tests/data/adam/adam_plus_anna_new_regulation_off.json
  • tests/data/anna/anna_elga_2_cooling.json
  • tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json
  • tests/data/anna/anna_elga_2_schedule_off.json
  • tests/data/anna/anna_elga_no_cooling.json
  • tests/data/anna/anna_heatpump_cooling.json
  • tests/data/anna/anna_heatpump_cooling_fake_firmware.json
  • tests/data/anna/anna_heatpump_heating.json
  • tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json
  • tests/data/anna/anna_loria_cooling_active.json
  • tests/data/anna/anna_loria_driessens.json
  • tests/data/anna/anna_loria_heating_idle.json
  • tests/data/anna/anna_v4.json
  • tests/data/anna/anna_v4_UPDATED_DATA.json
  • tests/data/anna/anna_v4_dhw.json
  • tests/data/anna/anna_v4_no_tag.json
  • tests/data/anna/legacy_anna.json
  • tests/data/anna/legacy_anna_2.json
  • tests/test_init.py
📝 Walkthrough

Walkthrough

The PR renames boiler and domestic-hot-water temperature fields across the data model, runtime mappings, fixtures, fixture generation, and test data. Legacy actuator processing and nested comparison logic now recognize the new entity keys.

Changes

Temperature schema migration

Layer / File(s) Summary
Runtime schema and mappings
plugwise/common.py, plugwise/constants.py, plugwise/data.py, plugwise/legacy/helper.py, plugwise/smile.py
The runtime model and temperature operations use boiler_temperature and dhw_temperature. Legacy actuator processing no longer excludes the renamed temperature actuator.
Fixture schema and generation
fixtures/*/data.json, scripts/manual_fixtures.py
Fixtures and generated fixture data replace the legacy temperature keys while preserving values and limits.
Test data and comparison updates
tests/data/{adam,anna}/*.json, tests/test_init.py
Test fixtures use the renamed fields. Nested dictionary comparison recognizes the updated entity keys.
Release documentation
CHANGELOG.md
The changelog records the dictionary-key rename and updates the release heading.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested labels: enhancement

Suggested reviewers: compatech

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: renaming water-heater dictionary fields.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch wh-3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai
coderabbitai Bot requested a review from CoMPaTech July 31, 2026 06:21
@coderabbitai coderabbitai Bot added the enhancement New feature or request label Jul 31, 2026
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bb3db5a) to head (dd537f1).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #908   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         3502      3505    +3     
=========================================
+ Hits          3502      3505    +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@plugwise/constants.py`:
- Around line 595-596: Remove the unused maximum_boiler_temperature and
max_dhw_temperature fields from GwEntityData, leaving boiler_temperature and
dhw_temperature intact. Do not alter the corresponding ActuatorType members,
legacy constants, or test strings unless required by an explicit
deprecated-alias contract.

In `@plugwise/smile.py`:
- Around line 178-181: Update the positive actuator inputs in
tinker_actuator_temp() to use boiler_temperature and dhw_temperature, matching
the public keys handled by set_number(). Replace maximum_boiler_temperature and
max_dhw_temperature while preserving the existing assertions and test flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 94673460-ce2e-4cef-b951-ae94b637126b

📥 Commits

Reviewing files that changed from the base of the PR and between 8b41c85 and 1f42d6c.

📒 Files selected for processing (57)
  • fixtures/adam_bad_thermostat/data.json
  • fixtures/adam_heatpump_cooling/data.json
  • fixtures/adam_jip/data.json
  • fixtures/adam_onoff_cooling_fake_firmware/data.json
  • fixtures/adam_plus_anna/data.json
  • fixtures/adam_plus_anna_new/data.json
  • fixtures/adam_plus_anna_new_regulation_off/data.json
  • fixtures/anna_elga_2_cooling/data.json
  • fixtures/anna_elga_2_schedule_off/data.json
  • fixtures/anna_elga_no_cooling/data.json
  • fixtures/anna_heatpump_cooling/data.json
  • fixtures/anna_heatpump_cooling_fake_firmware/data.json
  • fixtures/anna_heatpump_heating/data.json
  • fixtures/anna_loria_cooling_active/data.json
  • fixtures/anna_loria_driessens/data.json
  • fixtures/anna_loria_heating_idle/data.json
  • fixtures/anna_v4/data.json
  • fixtures/anna_v4_dhw/data.json
  • fixtures/anna_v4_no_tag/data.json
  • fixtures/legacy_anna/data.json
  • fixtures/legacy_anna_2/data.json
  • fixtures/m_adam_cooling/data.json
  • fixtures/m_adam_heating/data.json
  • fixtures/m_adam_heating_off_schedule/data.json
  • fixtures/m_adam_jip/data.json
  • fixtures/m_anna_heatpump_cooling/data.json
  • fixtures/m_anna_heatpump_idle/data.json
  • plugwise/common.py
  • plugwise/constants.py
  • plugwise/data.py
  • plugwise/smile.py
  • scripts/manual_fixtures.py
  • tests/data/adam/adam_bad_thermostat.json
  • tests/data/adam/adam_heatpump_cooling.json
  • tests/data/adam/adam_jip.json
  • tests/data/adam/adam_onoff_cooling_fake_firmware.json
  • tests/data/adam/adam_plus_anna.json
  • tests/data/adam/adam_plus_anna_new.json
  • tests/data/adam/adam_plus_anna_new_regulation_off.json
  • tests/data/anna/anna_elga_2_cooling.json
  • tests/data/anna/anna_elga_2_cooling_UPDATED_DATA.json
  • tests/data/anna/anna_elga_2_schedule_off.json
  • tests/data/anna/anna_elga_no_cooling.json
  • tests/data/anna/anna_heatpump_cooling.json
  • tests/data/anna/anna_heatpump_cooling_fake_firmware.json
  • tests/data/anna/anna_heatpump_heating.json
  • tests/data/anna/anna_heatpump_heating_UPDATED_DATA.json
  • tests/data/anna/anna_loria_cooling_active.json
  • tests/data/anna/anna_loria_driessens.json
  • tests/data/anna/anna_loria_heating_idle.json
  • tests/data/anna/anna_v4.json
  • tests/data/anna/anna_v4_UPDATED_DATA.json
  • tests/data/anna/anna_v4_dhw.json
  • tests/data/anna/anna_v4_no_tag.json
  • tests/data/anna/legacy_anna.json
  • tests/data/anna/legacy_anna_2.json
  • tests/test_init.py

Comment thread plugwise/constants.py
Comment thread plugwise/smile.py
@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

@bouwew
bouwew deployed to testpypi August 2, 2026 14:08 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant