From 52ba08d7711134e908936ae05649b18bb6d3e29d Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Sun, 26 Dec 2021 20:44:45 +0200 Subject: [PATCH] airpurifier_miot: add zhimi.airp.mb4a --- miio/airpurifier_miot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/miio/airpurifier_miot.py b/miio/airpurifier_miot.py index f59374b12..2de9b376f 100644 --- a/miio/airpurifier_miot.py +++ b/miio/airpurifier_miot.py @@ -16,6 +16,11 @@ "zhimi.airpurifier.vb2", # airpurifier proh ] +SUPPORTED_MODELS_MB4 = [ + "zhimi.airpurifier.mb4", # airpurifier 3c + "zhimi.airp.mb4a", # airpurifier +] + _LOGGER = logging.getLogger(__name__) _MAPPING = { # Air Purifier (siid=2) @@ -468,7 +473,7 @@ class AirPurifierMB4(BasicAirPurifierMiot): """Main class representing the air purifier which uses MIoT protocol.""" mapping = _MODEL_AIRPURIFIER_MB4 - _supported_models = ["zhimi.airpurifier.mb4"] # airpurifier 3c + _supported_models = SUPPORTED_MODELS_MB4 @command( default_output=format_output(