Skip to content

Commit

Permalink
Fix supported angles for mapped fans (#1496)
Browse files Browse the repository at this point in the history
* Fix supported angles for mapped fans

* Run pre-commit hooks

* Add P15, P18 to the docs
  • Loading branch information
iMicknl authored Aug 13, 2022
1 parent d872d55 commit 8ec26de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Supported devices
- Xiaomi Philips Zhirui Bedroom Smart Lamp
- Huayi Huizuo Lamps
- Xiaomi Universal IR Remote Controller (Chuangmi IR)
- Xiaomi Mi Smart Pedestal Fan V2, V3, SA1, ZA1, ZA3, ZA4, ZA5 1C, P5, P9, P10, P11, P33
- Xiaomi Mi Smart Pedestal Fan V2, V3, SA1, ZA1, ZA3, ZA4, ZA5 1C, P5, P9, P10, P11, P15, P18, P33
- Xiaomi Rosou SS4 Ventilator (leshow.fan.ss4)
- Xiaomi Mi Air Humidifier V1, CA1, CA4, CB1, MJJSQ, JSQ, JSQ1, JSQ001
- Xiaomi Mi Water Purifier (Basic support: Turn on & off)
Expand Down
2 changes: 2 additions & 0 deletions miio/integrations/fan/dmaker/fan_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
MODEL_FAN_P9: [30, 60, 90, 120, 150],
MODEL_FAN_P10: [30, 60, 90, 120, 140],
MODEL_FAN_P11: [30, 60, 90, 120, 140],
MODEL_FAN_P15: [30, 60, 90, 120, 140], # mapped to P11
MODEL_FAN_P18: [30, 60, 90, 120, 140], # mapped to P10
MODEL_FAN_P33: [30, 60, 90, 120, 140],
}

Expand Down

0 comments on commit 8ec26de

Please sign in to comment.