From f73a46a7d83c9a3552b90afc05abd818e43d334f Mon Sep 17 00:00:00 2001 From: Kamil Wargula Date: Sun, 30 Dec 2018 00:38:40 +0100 Subject: [PATCH 1/2] Add support v7 version for Xiaomi AirPurifier PRO --- miio/discovery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/miio/discovery.py b/miio/discovery.py index 01086efba..88d011e8b 100644 --- a/miio/discovery.py +++ b/miio/discovery.py @@ -44,6 +44,7 @@ "zhimi-airpurifier-v3": AirPurifier, # v3 "zhimi-airpurifier-v5": AirPurifier, # v5 "zhimi-airpurifier-v6": AirPurifier, # v6 + "zhimi-airpurifier-v7": AirPurifier, # v6 "zhimi-airpurifier-mc1": AirPurifier, # mc1 "chuangmi-ir-v2": ChuangmiIr, "zhimi-humidifier-v1": partial(AirHumidifier, model=MODEL_HUMIDIFIER_V1), From 5742e4e3f7d96b5a2ee863b77a4149f87dd636e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Wargu=C5=82a?= Date: Sun, 30 Dec 2018 11:32:00 +0100 Subject: [PATCH 2/2] Update discovery.py --- miio/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miio/discovery.py b/miio/discovery.py index 88d011e8b..7910d1bee 100644 --- a/miio/discovery.py +++ b/miio/discovery.py @@ -44,7 +44,7 @@ "zhimi-airpurifier-v3": AirPurifier, # v3 "zhimi-airpurifier-v5": AirPurifier, # v5 "zhimi-airpurifier-v6": AirPurifier, # v6 - "zhimi-airpurifier-v7": AirPurifier, # v6 + "zhimi-airpurifier-v7": AirPurifier, # v7 "zhimi-airpurifier-mc1": AirPurifier, # mc1 "chuangmi-ir-v2": ChuangmiIr, "zhimi-humidifier-v1": partial(AirHumidifier, model=MODEL_HUMIDIFIER_V1),