Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ariston/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ class NuosSplitOperativeMode(WaterHeaterMode):
"""NuosSplit operative mode enum"""

GREEN = 0
COMFORT = 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Required: Keep COMFORT = 1 while adding GREEN_PLUS = 6. This enum supplies the Nuos Split mode options and display text. Removing COMFORT makes API value 1 display as UNKNOWN, and set_water_heater_operation_mode("COMFORT") raises KeyError before the API call. Add GREEN_PLUS without dropping the existing mode.

FAST = 2
IMEMORY = 3
GREEN_PLUS = 6
Expand Down
4 changes: 2 additions & 2 deletions ariston/nuos_split_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async def async_set_water_heater_reduced_temperature(self, temperature: float):
def set_water_heater_operation_mode(self, operation_mode: str):
"""Set water heater operation mode"""
self.api.set_nuos_mode(self.gw, NuosSplitOperativeMode[operation_mode])
self.data[NuosSplitProperties.MODE] = NuosSplitOperativeMode[
self.data[NuosSplitProperties.OP_MODE] = NuosSplitOperativeMode[
operation_mode
].value

Expand All @@ -205,7 +205,7 @@ async def async_set_water_heater_operation_mode(self, operation_mode: str):
await self.api.async_set_nuos_mode(
self.gw, NuosSplitOperativeMode[operation_mode]
)
self.data[NuosSplitProperties.MODE] = NuosSplitOperativeMode[
self.data[NuosSplitProperties.OP_MODE] = NuosSplitOperativeMode[
operation_mode
].value

Expand Down
Loading