From 2a115ca87c50f7d93d12e0dc517aa94ae3865dcf Mon Sep 17 00:00:00 2001 From: Vassilis Panos <4130346+vassilis-panos@users.noreply.github.com> Date: Thu, 7 Apr 2022 08:23:43 +0300 Subject: [PATCH] Removes legacy imports to the fan component --- custom_components/smartir/__init__.py | 2 +- custom_components/smartir/fan.py | 8 +++++--- custom_components/smartir/manifest.json | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/custom_components/smartir/__init__.py b/custom_components/smartir/__init__.py index 15c923d7..b4a04957 100644 --- a/custom_components/smartir/__init__.py +++ b/custom_components/smartir/__init__.py @@ -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/{}/" diff --git a/custom_components/smartir/fan.py b/custom_components/smartir/fan.py index 2c7b99fc..ce8393b9 100644 --- a/custom_components/smartir/fan.py +++ b/custom_components/smartir/fan.py @@ -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 @@ -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, diff --git a/custom_components/smartir/manifest.json b/custom_components/smartir/manifest.json index aa6c7aa4..60e6dadc 100644 --- a/custom_components/smartir/manifest.json +++ b/custom_components/smartir/manifest.json @@ -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",