Skip to content

Commit

Permalink
Fixed an issue with setting the correct maximum relative modulation v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
Alexwijn committed May 8, 2023
1 parent 8dc5519 commit 4d28315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sat/opentherm/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _calculate_max_relative_mod(self, climate: SatClimate) -> int:
"""
setpoint = float(self.get(gw_vars.DATA_CONTROL_SETPOINT))

if climate.hvac_mode == HVACMode.HEAT or bool(self.get(gw_vars.DATA_SLAVE_DHW_ACTIVE)) or setpoint <= MINIMUM_SETPOINT:
if climate.hvac_mode != HVACMode.HEAT or bool(self.get(gw_vars.DATA_SLAVE_DHW_ACTIVE)) or setpoint <= MINIMUM_SETPOINT:
return MAXIMUM_RELATIVE_MOD

if self._overshoot_protection and not self._force_pulse_width_modulation:
Expand Down

0 comments on commit 4d28315

Please sign in to comment.