Fix Core Issue #178699 by bouwew · Pull Request #914 · plugwise/python-plugwise · GitHub
Skip to content

Fix Core Issue #178699 - #914

Merged
bouwew merged 10 commits into
mainfrom
fix-178699
Aug 12, 2026
Merged

bouwew merged 10 commits into
mainfrom
fix-178699

Conversation

@bouwew

@bouwew bouwew commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added support for domestic hot water comfort switches.
    • Comfort switches now appear and function as toggle controls on compatible systems.
    • Preserves available actuator-derived hot water modes.
  • Bug Fixes

    • Prevented valid hot water modes from being overwritten.
    • Improved validation feedback by identifying invalid operating modes and schedule states.
  • Documentation

    • Added release notes documenting these improvements.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

@coderabbitai
coderabbitai Bot requested a review from CoMPaTech August 11, 2026 10:40
@coderabbitai coderabbitai Bot added enhancement New feature or request python Pull requests that update Python code labels Aug 11, 2026

@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: 1

🤖 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 `@CHANGELOG.md`:
- Line 5: Update the changelog entry to replace the misspelled “confort” with
“comfort,” leaving the rest of the entry unchanged.
🪄 Autofix

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: 2c7e57cc-7277-4287-8391-d7c0f543d6b4

📥 Commits

Reviewing files that changed from the base of the PR and between 607ac48 and 77e0503.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • plugwise/smile.py

Comment thread CHANGELOG.md Outdated
@bouwew
bouwew deployed to testpypi August 11, 2026 10:41 — with GitHub Actions Active
@codecov

codecov Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (607ac48) to head (429ae0a).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #914   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         3505      3506    +1     
=========================================
+ Hits          3505      3506    +1     

☔ 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 removed enhancement New feature or request python Pull requests that update Python code labels Aug 11, 2026
@bouwew
bouwew deployed to testpypi August 11, 2026 13:52 — with GitHub Actions Active
@coderabbitai coderabbitai Bot added enhancement New feature or request python Pull requests that update Python code labels Aug 11, 2026

@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: 1

🤖 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/smile.py`:
- Around line 271-277: Update the validation checks in the methods handling dhw,
gateway, and regulation modes to safely handle missing optional collections by
using an empty-list fallback before membership tests. Preserve the existing
PlugwiseError behavior for unsupported modes or invalid lengths, and apply this
consistently to dhw_modes, gateway_modes, and regulation_modes.
🪄 Autofix

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: a1ef5b94-c79c-4b53-a5df-6188e00720e7

📥 Commits

Reviewing files that changed from the base of the PR and between 807d146 and 53ea602.

📒 Files selected for processing (2)
  • plugwise/helper.py
  • plugwise/smile.py

Comment thread plugwise/smile.py Outdated
@bouwew
bouwew deployed to testpypi August 11, 2026 16:59 — with GitHub Actions Active
@coderabbitai coderabbitai Bot added the quality label Aug 12, 2026
@bouwew
bouwew deployed to testpypi August 12, 2026 05:47 — with GitHub Actions Active
@sonarqubecloud

Copy link
Copy Markdown

@bouwew
bouwew deployed to testpypi August 12, 2026 06:03 — with GitHub Actions Active
@bouwew
bouwew marked this pull request as ready for review August 12, 2026 06:05
@bouwew
bouwew requested a review from a team as a code owner August 12, 2026 06:05
@bouwew
bouwew merged commit ccd5387 into main Aug 12, 2026
18 checks passed
@bouwew
bouwew deleted the fix-178699 branch August 12, 2026 06:10

This branch was successfully deployed

2 active deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update Python code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant