Skip to content

Commit

Permalink
Add discovery of the Xiaomi Air Quality Monitor (PM2.5) (Closes: ryti…
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Oct 13, 2018
1 parent e4f6bbb commit c46c93e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miio/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from . import (Device, Vacuum, ChuangmiPlug, PowerStrip, AirPurifier, AirFresh, Ceil,
PhilipsBulb, PhilipsEyecare, PhilipsMoonlight, ChuangmiIr,
AirHumidifier, WaterPurifier, WifiSpeaker, WifiRepeater,
Yeelight, Fan, Cooker, AirConditioningCompanion)
Yeelight, Fan, Cooker, AirConditioningCompanion, AirQualityMonitor)

from .chuangmi_plug import (MODEL_CHUANGMI_PLUG_V1, MODEL_CHUANGMI_PLUG_V3,
MODEL_CHUANGMI_PLUG_M1, )
Expand Down Expand Up @@ -71,6 +71,7 @@
"zhimi-fan-sa1": partial(Fan, model=MODEL_FAN_SA1),
"zhimi-fan-za1": partial(Fan, model=MODEL_FAN_ZA1),
"zhimi-airfresh-va2": AirFresh,
"zhimi-airmonitor-v1": AirQualityMonitor,
"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 c46c93e

Please sign in to comment.