Skip to content

Commit

Permalink
mDNS discovery: Xiaomi Smart Fans added (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Apr 8, 2018
1 parent 71195ce commit f2c5e74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion miio/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from . import (Device, Vacuum, ChuangmiPlug, PowerStrip, AirPurifier, Ceil,
PhilipsBulb, PhilipsEyecare, ChuangmiIr, AirHumidifier,
WaterPurifier, WifiSpeaker, WifiRepeater, Yeelight, )
WaterPurifier, WifiSpeaker, WifiRepeater, Yeelight, Fan, )
from .chuangmi_plug import (MODEL_CHUANGMI_PLUG_V1, MODEL_CHUANGMI_PLUG_V3,
MODEL_CHUANGMI_PLUG_M1, )

Expand Down Expand Up @@ -51,6 +51,8 @@
"xiaomi-repeater-v1": WifiRepeater, # name needs to be checked
"xiaomi-repeater-v3": WifiRepeater, # name needs to be checked
"yeelink-light-": Yeelight,
"zhimi-fan-v2": Fan,
"zhimi-fan-v3": Fan,
"lumi-gateway-": lambda x: other_package_info(
x, "https://github.com/Danielhiversen/PyXiaomiGateway")
} # type: Dict[str, Union[Callable, Device]]
Expand Down

0 comments on commit f2c5e74

Please sign in to comment.