Skip to content

Commit 2a115ca

Browse files
Removes legacy imports to the fan component
1 parent a084143 commit 2a115ca

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

custom_components/smartir/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
_LOGGER = logging.getLogger(__name__)
2020

2121
DOMAIN = 'smartir'
22-
VERSION = '1.17.5'
22+
VERSION = '1.17.6'
2323
MANIFEST_URL = (
2424
"https://raw.githubusercontent.com/"
2525
"smartHomeHub/SmartIR/{}/"

custom_components/smartir/fan.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import voluptuous as vol
77

88
from homeassistant.components.fan import (
9-
FanEntity, PLATFORM_SCHEMA, ATTR_SPEED,
10-
SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH,
9+
FanEntity, PLATFORM_SCHEMA,
1110
DIRECTION_REVERSE, DIRECTION_FORWARD,
12-
SUPPORT_SET_SPEED, SUPPORT_DIRECTION, SUPPORT_OSCILLATE, ATTR_OSCILLATING )
11+
SUPPORT_SET_SPEED, SUPPORT_DIRECTION, SUPPORT_OSCILLATE,
12+
ATTR_OSCILLATING )
1313
from homeassistant.const import (
1414
CONF_NAME, STATE_OFF, STATE_ON, STATE_UNKNOWN)
1515
from homeassistant.core import callback
@@ -34,6 +34,8 @@
3434
CONF_DELAY = "delay"
3535
CONF_POWER_SENSOR = 'power_sensor'
3636

37+
SPEED_OFF = "off"
38+
3739
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
3840
vol.Optional(CONF_UNIQUE_ID): cv.string,
3941
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,

custom_components/smartir/manifest.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"dependencies": [],
66
"codeowners": ["@smartHomeHub"],
77
"requirements": ["aiofiles==0.6.0"],
8-
"homeassistant": "2022.2.0",
9-
"version": "1.17.5",
8+
"homeassistant": "2022.4.0",
9+
"version": "1.17.6",
1010
"updater": {
11-
"version": "1.17.5",
12-
"releaseNotes": "-- Compliance with the breaking change of the new fan model",
11+
"version": "1.17.6",
12+
"releaseNotes": "-- Removes legacy imports to the fan component",
1313
"files": [
1414
"__init__.py",
1515
"climate.py",

0 commit comments

Comments
 (0)