From f2c5e74d13afdf05ef389905a34cf172d936e069 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 8 Apr 2018 21:48:19 +0200 Subject: [PATCH] mDNS discovery: Xiaomi Smart Fans added (#304) --- miio/discovery.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miio/discovery.py b/miio/discovery.py index 3138f7860..82831b3fc 100644 --- a/miio/discovery.py +++ b/miio/discovery.py @@ -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, ) @@ -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]]