Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix: correct (better ?) handling of hotwater for senso
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgermain committed Oct 14, 2023
1 parent c2d705e commit c89e44a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pymultimatic/model/dhw.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def _active_mode(self) -> ActiveMode:
self.operating_mode == OperatingModes.AUTO
): # auto at this point mean we have a "direct heater"
mode = ActiveMode(self.target_high, OperatingModes.AUTO, SettingModes.ON)
elif self.operating_mode == OperatingModes.ON or self.operating_mode == OperatingModes.MANUAL:
elif (
self.operating_mode == OperatingModes.ON or self.operating_mode == OperatingModes.MANUAL
):
mode = ActiveMode(self.target_high, self.operating_mode)
else: # MODE_OFF
mode = ActiveMode(constants.FROST_PROTECTION_TEMP, OperatingModes.OFF)
Expand Down

0 comments on commit c89e44a

Please sign in to comment.