Skip to content

Commit

Permalink
Unsupported models fall back to mc2
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Jan 21, 2022
1 parent 0ac5427 commit 03492a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miio/heater_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def set_led_brightness(self, brightness: LedBrightness):
def set_delay_off(self, seconds: int):
"""Set delay off seconds."""
min_delay, max_delay = HEATER_PROPERTIES.get(
self.model, {"delay_off_range": (0, 8 * 3600)}
self.model, {"delay_off_range": (0, 12 * 3600)}
)["delay_off_range"]
if seconds < min_delay or seconds > max_delay:
raise HeaterMiotException(
Expand Down

0 comments on commit 03492a0

Please sign in to comment.