Skip to content

Commit

Permalink
airpurifier_miot: add zhimi.airp.mb4a
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Dec 26, 2021
1 parent fd98051 commit 52ba08d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion miio/airpurifier_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 52ba08d

Please sign in to comment.