Skip to content

Commit

Permalink
Add support for Xiaomi Air purifier 3C (#899)
Browse files Browse the repository at this point in the history
* split into two models

* Add test for mb4

* Fixed missing import

* fix favorite level and brightness setting

* fixed favorite level in test

* applied status review remarks

* Removed unnecessary constructor

Co-authored-by: Teemu R. <[email protected]>

* Improved comment

Co-authored-by: Teemu R. <[email protected]>

* Removed unnecessary constructor

Co-authored-by: Teemu R. <[email protected]>

* fixed linting

* updated readme

Co-authored-by: Teemu R. <[email protected]>
  • Loading branch information
arturdobo and rytilahti authored Feb 7, 2021
1 parent 78f8bee commit 91ecc98
Show file tree
Hide file tree
Showing 4 changed files with 374 additions and 82 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Supported devices
- Xiaomi Mi Robot Vacuum V1, S5, M1S
- Xiaomi Mi Home Air Conditioner Companion
- Xiaomi Mi Smart Air Conditioner A (xiaomi.aircondition.mc1, mc2, mc4, mc5)
- Xiaomi Mi Air Purifier
- Xiaomi Mi Air Purifier 2, 3H, 3C, Pro (zhimi.airpurifier.m2, mb3, mb4, v7)
- Xiaomi Mi Air (Purifier) Dog X3, X5, X7SM (airdog.airpurifier.x3, airdog.airpurifier.x5, airdog.airpurifier.x7sm)
- Xiaomi Mi Air Humidifier
- Xiaomi Aqara Camera
Expand Down
2 changes: 1 addition & 1 deletion miio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from miio.airhumidifier_mjjsq import AirHumidifierMjjsq
from miio.airpurifier import AirPurifier
from miio.airpurifier_airdog import AirDogX3, AirDogX5, AirDogX7SM
from miio.airpurifier_miot import AirPurifierMiot
from miio.airpurifier_miot import AirPurifierMB4, AirPurifierMiot
from miio.airqualitymonitor import AirQualityMonitor
from miio.airqualitymonitor_miot import AirQualityMonitorCGDN1
from miio.aqaracamera import AqaraCamera
Expand Down
Loading

0 comments on commit 91ecc98

Please sign in to comment.