Skip to content

Commit 92443bf

Browse files
authored
Merge pull request #581 from plugwise/dhw_setpoint
Implement fix for Core Issue #119686
2 parents 8e18d46 + 8d11762 commit 92443bf

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.38.3
4+
5+
- Implement fix for Core Issue [#119686](https://github.com/home-assistant/core/issues/119686)
6+
37
## v0.38.2
48

59
- Lower connection-timeout for actual devices after initial connect

plugwise/smile.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@ async def set_number(
163163
temperature: float,
164164
) -> None:
165165
"""Set the maximum boiler- or DHW-setpoint on the Central Heating boiler or the temperature-offset on a Thermostat."""
166-
if key == "temperature_offset":
167-
await self.set_offset(dev_id, temperature)
168-
return
166+
match key:
167+
case "temperature_offset":
168+
await self.set_offset(dev_id, temperature)
169+
return
170+
case "max_dhw_temperature":
171+
key = "domestic_hot_water_setpoint"
169172

170173
temp = str(temperature)
171174
thermostat_id: str | None = None

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "plugwise"
7-
version = "0.38.2"
7+
version = "0.38.3"
88
license = {file = "LICENSE"}
99
description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3."
1010
readme = "README.md"

tests/test_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ async def tinker_max_boiler_temp(smile, unhappy=False):
916916
tinker_max_boiler_temp_passed = False
917917
new_temp = 60.0
918918
_LOGGER.info("- Adjusting temperature to %s", new_temp)
919-
for test in ["maximum_boiler_temperature", "bogus_temperature"]:
919+
for test in ["maximum_boiler_temperature", "max_dhw_temperature", "bogus_temperature"]:
920920
_LOGGER.info(" + for %s", test)
921921
try:
922922
await smile.set_number("dummy", test, new_temp)

0 commit comments

Comments
 (0)