Skip to content

Commit

Permalink
Removes legacy imports to the fan component
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilis-panos committed Apr 7, 2022
1 parent a084143 commit 2a115ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/smartir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
_LOGGER = logging.getLogger(__name__)

DOMAIN = 'smartir'
VERSION = '1.17.5'
VERSION = '1.17.6'
MANIFEST_URL = (
"https://raw.githubusercontent.com/"
"smartHomeHub/SmartIR/{}/"
Expand Down
8 changes: 5 additions & 3 deletions custom_components/smartir/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import voluptuous as vol

from homeassistant.components.fan import (
FanEntity, PLATFORM_SCHEMA, ATTR_SPEED,
SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH,
FanEntity, PLATFORM_SCHEMA,
DIRECTION_REVERSE, DIRECTION_FORWARD,
SUPPORT_SET_SPEED, SUPPORT_DIRECTION, SUPPORT_OSCILLATE, ATTR_OSCILLATING )
SUPPORT_SET_SPEED, SUPPORT_DIRECTION, SUPPORT_OSCILLATE,
ATTR_OSCILLATING )
from homeassistant.const import (
CONF_NAME, STATE_OFF, STATE_ON, STATE_UNKNOWN)
from homeassistant.core import callback
Expand All @@ -34,6 +34,8 @@
CONF_DELAY = "delay"
CONF_POWER_SENSOR = 'power_sensor'

SPEED_OFF = "off"

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_UNIQUE_ID): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
Expand Down
8 changes: 4 additions & 4 deletions custom_components/smartir/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"dependencies": [],
"codeowners": ["@smartHomeHub"],
"requirements": ["aiofiles==0.6.0"],
"homeassistant": "2022.2.0",
"version": "1.17.5",
"homeassistant": "2022.4.0",
"version": "1.17.6",
"updater": {
"version": "1.17.5",
"releaseNotes": "-- Compliance with the breaking change of the new fan model",
"version": "1.17.6",
"releaseNotes": "-- Removes legacy imports to the fan component",
"files": [
"__init__.py",
"climate.py",
Expand Down

0 comments on commit 2a115ca

Please sign in to comment.