Skip to content

Commit

Permalink
Merge branch 'release/2022.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 8, 2022
2 parents e4812e9 + 225dc19 commit c3574dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions custom_components/xiaomi_miio_fan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
Fan1C,
FanLeshow,
FanP5,
FanP9,
FanP10,
FanP11,
FanMiot
)
from miio.miot_device import MiotDevice, DeviceStatus
from miio.fan_common import (
Expand Down Expand Up @@ -417,17 +415,17 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
name, fan, model, unique_id, retries, preset_modes_override
)
elif model == MODEL_FAN_P9:
fan = FanP9(host, token, model=model)
fan = FanMiot(host, token, model=model)
device = XiaomiFanMiot(
name, fan, model, unique_id, retries, preset_modes_override
)
elif model in [MODEL_FAN_P10, MODEL_FAN_P18]:
fan = FanP10(host, token, model=MODEL_FAN_P10)
fan = FanMiot(host, token, model=MODEL_FAN_P10)
device = XiaomiFanMiot(
name, fan, model, unique_id, retries, preset_modes_override
)
elif model in [MODEL_FAN_P11, MODEL_FAN_P15]:
fan = FanP11(host, token, model=MODEL_FAN_P11)
fan = FanMiot(host, token, model=MODEL_FAN_P11)
device = XiaomiFanMiot(
name, fan, model, unique_id, retries, preset_modes_override
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miio_fan/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "xiaomi_miio_fan",
"name": "Xiaomi Mi Smart Pedestal Fan",
"version": "2022.3.0",
"version": "2022.3.1",
"iot_class": "local_polling",
"documentation": "https://github.com/syssi/xiaomi_fan",
"issue_tracker": "https://github.com/syssi/xiaomi_fan/issues",
Expand Down

0 comments on commit c3574dc

Please sign in to comment.