Skip to content

Commit

Permalink
Fix "cannot import name 'SPEED_OFF' (Closes: #276)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Apr 6, 2022
1 parent 24bc61f commit b9b4e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_miio_airpurifier/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@

from homeassistant.components.fan import (
PLATFORM_SCHEMA,
SPEED_OFF,
SUPPORT_DIRECTION,
SUPPORT_OSCILLATE,
SUPPORT_PRESET_MODE,
Expand Down Expand Up @@ -222,6 +221,8 @@
}
)

SPEED_OFF = "off"

ATTR_MODEL = "model"
ATTR_SPEED = "speed"

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.4.0.0",
"version": "2022.4.0.1",
"iot_class": "local_polling",
"config_flow": false,
"documentation": "https://github.com/syssi/xiaomi_airpurifier",
Expand Down

0 comments on commit b9b4e56

Please sign in to comment.