Skip to content

Commit

Permalink
Merge branch 'release/2022.3.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Apr 3, 2022
2 parents 992e12f + a554f3a commit e23569b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 3 additions & 1 deletion custom_components/xiaomi_miio_airpurifier/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miio_airpurifier/manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e23569b

Please sign in to comment.