Skip to content

Commit

Permalink
Add zhimi.humidfier.ca4 as supported model (#1220)
Browse files Browse the repository at this point in the history
* Add zhimi.humidfier.ca4 as supported model

* fix lint
  • Loading branch information
jbouwh committed Dec 9, 2021
1 parent dbe6b47 commit 4342e3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions miio/airhumidifier_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,16 @@ def clean_mode(self) -> bool:
return self.data["clean_mode"]


SMARTMI_EVAPORATIVE_HUMIDIFIER_2 = "zhimi.humidfier.ca4"

SUPPORTED_MODELS = [SMARTMI_EVAPORATIVE_HUMIDIFIER_2]


class AirHumidifierMiot(MiotDevice):
"""Main class representing the air humidifier which uses MIoT protocol."""

_supported_models = SUPPORTED_MODELS

mapping = _MAPPING

@command(
Expand Down

0 comments on commit 4342e3d

Please sign in to comment.