Skip to content

Stop sending 0 as the Nuos Split reduced setpoint - #5

Merged
wojciech-aniol merged 1 commit into
mainfrom
nuos-comfort-unknown-reduced
Oct 25, 2026
Merged

wojciech-aniol merged 1 commit into
mainfrom
nuos-comfort-unknown-reduced

Conversation

@wojciech-aniol

Copy link
Copy Markdown
Owner

A Nuos Split comfort temperature change sent 0 as the new reduced setpoint when the cloud had not sent reducedTemp. It now refreshes once when the reduced value is missing and raises ValueError if it is still unknown, so it never sends a made-up value. This is the same rule the reduced setter follows for the comfort value since #4.

Changes

  • set_water_heater_temperature / async_set_water_heater_temperature: refresh when reducedTemp is missing (was: only when data was empty), then raise ValueError instead of sending reduced=0.
  • _known() replaces _comfort_temperature() and serves both setters.

Tests

tests/test_nuos_split_device.py, sync and async: comfort set with data that has no reducedTemp loads it first; unknown reduced raises and sends nothing. The 4 new cases fail on main. 35 tests and ruff pass.

No label: patch release. The integration gets its ValueError handling in a separate PR.

🤖 Generated with Claude Code

When reducedTemp was unknown, a comfort temperature change sent 0 as
the new reduced setpoint. It now refreshes once when the reduced value
is missing and raises ValueError if it is still unknown, the same rule
the reduced setter follows for the comfort value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wojciech-aniol wojciech-aniol self-assigned this Oct 25, 2026
@wojciech-aniol
wojciech-aniol marked this pull request as ready for review October 25, 2026 08:57
@wojciech-aniol
wojciech-aniol merged commit 79d85ed into main Oct 25, 2026
5 checks passed
@wojciech-aniol
wojciech-aniol deleted the nuos-comfort-unknown-reduced branch October 25, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant