diff --git a/custom_components/xiaomi_miio_airpurifier/fan.py b/custom_components/xiaomi_miio_airpurifier/fan.py index eae47f3..4e60d3f 100644 --- a/custom_components/xiaomi_miio_airpurifier/fan.py +++ b/custom_components/xiaomi_miio_airpurifier/fan.py @@ -22,8 +22,8 @@ Fan, Fan1C, FanLeshow, - FanP5, FanMiot, + FanP5, ) from miio.airfresh import ( # pylint: disable=import-error, import-error LedBrightness as AirfreshLedBrightness, @@ -42,9 +42,6 @@ LedBrightness as AirhumidifierJsqLedBrightness, OperationMode as AirhumidifierJsqOperationMode, ) -from miio.integrations.humidifier.deerma.airhumidifier_jsqs import ( # pylint: disable=import-error, import-error - OperationMode as AirhumidifierJsqsOperationMode, -) from miio.airhumidifier_miot import ( # pylint: disable=import-error, import-error LedBrightness as AirhumidifierMiotLedBrightness, OperationMode as AirhumidifierMiotOperationMode, @@ -72,10 +69,12 @@ from miio.integrations.fan.leshow.fan_leshow import ( # pylint: disable=import-error, import-error OperationMode as FanLeshowOperationMode, ) +from miio.integrations.humidifier.deerma.airhumidifier_jsqs import ( # pylint: disable=import-error, import-error + OperationMode as AirhumidifierJsqsOperationMode, +) import voluptuous as vol from homeassistant.components.fan import ( - ATTR_SPEED, PLATFORM_SCHEMA, SPEED_OFF, SUPPORT_DIRECTION, @@ -224,6 +223,7 @@ ) ATTR_MODEL = "model" +ATTR_SPEED = "speed" # Air Purifier ATTR_TEMPERATURE = "temperature" diff --git a/custom_components/xiaomi_miio_airpurifier/manifest.json b/custom_components/xiaomi_miio_airpurifier/manifest.json index 8ec4a5c..14104ac 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.3", + "version": "2022.4.0.0", "iot_class": "local_polling", "config_flow": false, "documentation": "https://github.com/syssi/xiaomi_airpurifier",