Skip to content

Commit

Permalink
Add HA core 2022.4.0 compatibility and bump version number
Browse files Browse the repository at this point in the history
syssi committed Apr 6, 2022
1 parent 5d4d265 commit fd827f9
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions custom_components/xiaomi_miio_airpurifier/fan.py
Original file line number Diff line number Diff line change
@@ -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"
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.3",
"version": "2022.4.0.0",
"iot_class": "local_polling",
"config_flow": false,
"documentation": "https://github.com/syssi/xiaomi_airpurifier",

0 comments on commit fd827f9

Please sign in to comment.