Skip to content

chore(testdata): update Vitocal 300G CU401B sample data#697

Merged
CFenner merged 6 commits intoopenviess:masterfrom
lackas:test-data/vitocal300g-cu401b
Feb 2, 2026
Merged

chore(testdata): update Vitocal 300G CU401B sample data#697
CFenner merged 6 commits intoopenviess:masterfrom
lackas:test-data/vitocal300g-cu401b

Conversation

@lackas
Copy link
Contributor

@lackas lackas commented Jan 31, 2026

Summary

  • Adds test response data for Vitocal 300G with CU401B controller

Split out from #689 as requested by @CFenner to make review easier. This test data enables the feature additions in that PR.

Adds API response dump for Vitocal 300G with CU401B controller.
This test data will be used by upcoming feature PRs.
lackas added a commit to lackas/PyViCare that referenced this pull request Jan 31, 2026
- Remove test data (split to PR openviess#697)
- Rename getTemperature -> getTargetTemperature per review
- Rename getTemperatureUnit -> getTargetTemperatureUnit per review
This property is exposed by Vitocal 300G but not yet implemented.
@CFenner
Copy link
Member

CFenner commented Feb 1, 2026

Thanks, the data for 300G is very old. Lets remove the tests/response/Vitocal300G.json and update its tests if any.

CFenner and others added 2 commits February 1, 2026 07:57
Minimal changes to make existing tests pass with new Vitocal300G_CU401B.json:
- Update expected values (compressor hours, starts, temperatures)
- Use circuit 1 instead of 0 (device configuration difference)
- Skip load class tests (need statistics.load fallback from PR openviess#689)
- Remove outdated Vitocal300G.json (from 2021)

Comprehensive tests for new features (COP, cooling circuits, heating rod,
refrigerant sensors, etc.) will be added with PR openviess#689.
@lackas
Copy link
Contributor Author

lackas commented Feb 1, 2026

Thanks @CFenner! Good point about the old data being outdated.

Done - removed Vitocal300G.json and updated the existing tests with minimal changes:

Comprehensive tests for new features (COP, cooling circuits, heating rod, etc.) will be added with #689.

@lackas
Copy link
Contributor Author

lackas commented Feb 1, 2026

Hi @CFenner, just a heads up that PR #689 is waiting on this one to merge. Once this is in, I'll rebase #689 and merge the comprehensive feature tests into test_Vitocal300G.py (removing the separate test_Vitocal300G_CU401B.py file). That will also un-skip the load class tests since #689 includes the fallback logic for statistics.load.

@CFenner
Copy link
Member

CFenner commented Feb 1, 2026 via email

@CFenner CFenner changed the title test: add Vitocal 300G CU401B response data chore(testdata): update Vitocal 300G CU401B sample data Feb 1, 2026
The device only has circuit "1" enabled, so getAvailableCircuits()
returns ["1"]. The library creates circuits[0] for this single circuit,
not circuits[1]. Fix index and clarify comment.
Available modes are read from API constraints and vary by device
configuration. This device reports 3 modes: dhw, dhwAndHeating, standby.
Copy link
Member

@CFenner CFenner left a comment

Choose a reason for hiding this comment

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

👍

@CFenner CFenner merged commit 72ffb4a into openviess:master Feb 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants