Skip to content

Commit

Permalink
Some sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexwijn committed Feb 16, 2025
1 parent f429f8d commit 16202d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sat/pwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, cycles: Cycles, heating_curve: HeatingCurve, supports_relativ

# Timing thresholds for duty cycle management
self._on_time_lower_threshold: float = 180
self._on_time_upper_threshold: float = 3600 / self._cycles.maximum
self._on_time_upper_threshold: float = 3600 / max(1, self._cycles.maximum)
self._on_time_max_threshold: float = self._on_time_upper_threshold * 2

# Duty cycle percentage thresholds
Expand Down

0 comments on commit 16202d9

Please sign in to comment.