Skip to content

Commit

Permalink
Turn off auto humidification when set target humidity
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxn committed Apr 8, 2021
1 parent 8187c45 commit 09218b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libdyson/dyson_pure_humidify_cool.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def disable_humidification_auto_mode(self) -> None:

def set_target_humidity(self, target_humidity: int) -> None:
"""Set target humidity."""
self._set_configuration(humt=f"{target_humidity:04d}")
self._set_configuration(humt=f"{target_humidity:04d}", haut="OFF")

def set_water_hardness(self, water_hardness: WaterHardness) -> None:
"""Set water hardness."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pure_humidify_cool.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_properties(mqtt_client: MockedMQTT):
("disable_humidification", [], {"hume": "OFF"}),
("enable_humidification_auto_mode", [], {"haut": "ON"}),
("disable_humidification_auto_mode", [], {"haut": "OFF"}),
("set_target_humidity", [50], {"humt": "0050"}),
("set_target_humidity", [50], {"humt": "0050", "haut": "OFF"}),
("set_water_hardness", [WaterHardness.SOFT], {"wath": "2025"}),
("set_water_hardness", [WaterHardness.MEDIUM], {"wath": "1350"}),
("set_water_hardness", [WaterHardness.HARD], {"wath": "0675"}),
Expand Down

0 comments on commit 09218b2

Please sign in to comment.