diff --git a/miio/chuangmi_plug.py b/miio/chuangmi_plug.py index 5aa3d761c..57dbb49f3 100644 --- a/miio/chuangmi_plug.py +++ b/miio/chuangmi_plug.py @@ -16,6 +16,7 @@ MODEL_CHUANGMI_PLUG_M3 = 'chuangmi.plug.m3' MODEL_CHUANGMI_PLUG_V2 = 'chuangmi.plug.v2' MODEL_CHUANGMI_PLUG_HMI205 = 'chuangmi.plug.hmi205' +MODEL_CHUANGMI_PLUG_HMI206 = 'chuangmi.plug.hmi206' AVAILABLE_PROPERTIES = { MODEL_CHUANGMI_PLUG_V1: ['on', 'usb_on', 'temperature'], @@ -24,6 +25,7 @@ MODEL_CHUANGMI_PLUG_M3: ['power', 'temperature'], MODEL_CHUANGMI_PLUG_V2: ['power', 'temperature'], MODEL_CHUANGMI_PLUG_HMI205: ['power', 'temperature'], + MODEL_CHUANGMI_PLUG_HMI206: ['power', 'temperature'], } diff --git a/miio/discovery.py b/miio/discovery.py index afce254d7..035daff08 100644 --- a/miio/discovery.py +++ b/miio/discovery.py @@ -19,7 +19,7 @@ from .airhumidifier import (MODEL_HUMIDIFIER_CB1, MODEL_HUMIDIFIER_CA1, MODEL_HUMIDIFIER_V1, ) from .chuangmi_plug import (MODEL_CHUANGMI_PLUG_V1, MODEL_CHUANGMI_PLUG_V2, MODEL_CHUANGMI_PLUG_V3, MODEL_CHUANGMI_PLUG_M1, MODEL_CHUANGMI_PLUG_M3, - MODEL_CHUANGMI_PLUG_HMI205, ) + MODEL_CHUANGMI_PLUG_HMI205, MODEL_CHUANGMI_PLUG_HMI206, ) from .fan import (MODEL_FAN_V2, MODEL_FAN_V3, MODEL_FAN_SA1, MODEL_FAN_ZA1, MODEL_FAN_ZA3, MODEL_FAN_ZA4, MODEL_FAN_P5, ) @@ -39,6 +39,7 @@ "chuangmi-plug-v2": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_V2), "chuangmi-plug-v3": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_V3), "chuangmi-plug-hmi205": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_HMI205), + "chuangmi-plug-hmi206": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_HMI206), "chuangmi-plug_": partial(ChuangmiPlug, model=MODEL_CHUANGMI_PLUG_V1), "qmi-powerstrip-v1": partial(PowerStrip, model=MODEL_POWER_STRIP_V1), "zimi-powerstrip-v2": partial(PowerStrip, model=MODEL_POWER_STRIP_V2),