From a649dbbf16161b28976daf7408f397cc8113b78e Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 27 Mar 2022 14:20:11 +0200 Subject: [PATCH 1/3] Fix link to the token retrieval instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e7032c..632f183 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a custom component for home assistant to integrate the Xiaomi Mi Air Purifier 2, Air Purifier 2S, Air Purifier Pro, Air Humidifier, Air Fresh and Pedestal Fan. -Please follow the instructions on [Retrieving the Access Token](https://home-assistant.io/components/xiaomi/#retrieving-the-access-token) to get the API token to use in the configuration.yaml file. +Please follow the instructions on [Retrieving the Access Token](https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-cloud-tokens-extractor) to get the API token to use in the configuration.yaml file. Credits: Thanks to [Rytilahti](https://github.com/rytilahti/python-miio) for all the work. From 2e86e405f01db3ada204e2cb387dde2f8a815abd Mon Sep 17 00:00:00 2001 From: Nikolay Vasilchuk Date: Sun, 3 Apr 2022 18:25:57 +0300 Subject: [PATCH 2/3] Remove "wet protect" from preset modes of the deerma.humidifier.mjjsq (#258) --- custom_components/xiaomi_miio_airpurifier/fan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miio_airpurifier/fan.py b/custom_components/xiaomi_miio_airpurifier/fan.py index 137674b..eae47f3 100644 --- a/custom_components/xiaomi_miio_airpurifier/fan.py +++ b/custom_components/xiaomi_miio_airpurifier/fan.py @@ -1895,7 +1895,9 @@ def __init__(self, name, device, model, unique_id): self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER_MJJSQ self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_MJJSQ - self._preset_modes = [mode.name for mode in AirhumidifierMjjsqOperationMode] + self._preset_modes = [mode.name for mode in AirhumidifierMjjsqOperationMode + if self._device_features & FEATURE_SET_WET_PROTECTION != 0 + or mode != AirhumidifierMjjsqOperationMode.WetAndProtect] self._state_attrs = {ATTR_MODEL: self._model} self._state_attrs.update( {attribute: None for attribute in self._available_attributes} From a554f3aa7fae2b5e1e86ddf966721a297e0b1f0f Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 3 Apr 2022 17:26:33 +0200 Subject: [PATCH 3/3] Bump component version --- custom_components/xiaomi_miio_airpurifier/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miio_airpurifier/manifest.json b/custom_components/xiaomi_miio_airpurifier/manifest.json index 6057e49..8ec4a5c 100644 --- a/custom_components/xiaomi_miio_airpurifier/manifest.json +++ b/custom_components/xiaomi_miio_airpurifier/manifest.json @@ -1,7 +1,7 @@ { "domain": "xiaomi_miio_airpurifier", "name": "Xiaomi Mi Air Purifier, Air Humidifier, Air Fresh and Pedestal Fan Integration", - "version": "2022.3.3.2", + "version": "2022.3.3.3", "iot_class": "local_polling", "config_flow": false, "documentation": "https://github.com/syssi/xiaomi_airpurifier",