Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexwijn committed Jan 14, 2025
1 parent 5113899 commit 1590d33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/sat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,9 +919,8 @@ async def async_control_heating_loop(self, _time: Optional[datetime] = None) ->

# Check if we are above the overshoot temperature
if (
self._setpoint_adjuster.current is not None and
self._coordinator.device_status == DeviceStatus.COOLING_DOWN and
math.floor(self._calculated_setpoint) > self._setpoint_adjuster.current + 5
self._setpoint_adjuster.current is not None and math.floor(self._calculated_setpoint) > math.floor(self._setpoint_adjuster.current)
):
self._pulse_width_modulation_enabled = False
_LOGGER.info("Setpoint stabilization detected, disabling Pulse Width Modulation.")
Expand Down

0 comments on commit 1590d33

Please sign in to comment.