Skip to content

Commit

Permalink
Add miiocli support for the Air Humidifier CA1 (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Oct 8, 2018
1 parent 8012ec7 commit e4f6bbb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions miio/airhumidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,3 +390,10 @@ def set_dry(self, dry: bool):
return self.send("set_dry", ["on"])
else:
return self.send("set_dry", ["off"])


class AirHumidifierCA1(AirHumidifier):
def __init__(self, ip: str = None, token: str = None, start_id: int = 0,
debug: int = 0, lazy_discover: bool = True) -> None:
super().__init__(ip, token, start_id, debug, lazy_discover,
model=MODEL_HUMIDIFIER_CA1)

0 comments on commit e4f6bbb

Please sign in to comment.