Skip to content

Commit

Permalink
Merge pull request #45 from dfigus/fix-depricated-constant-usage
Browse files Browse the repository at this point in the history
Fix Deprecated Constant Usage
  • Loading branch information
W00D00 authored Mar 25, 2024
2 parents 68a98b1 + 4b9ea8d commit 9a36fc1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ Feature branches with lots of small commits (especially titled "oops", "fix typo
---

# Version
* 3.3.1 - March 11, 2023 [Fix Deprecated Constant Usage](https://github.com/W00D00/home-assistant-elero/pull/45)
* 3.3 - May 12, 2023 [Using remote transmitter with ser2net](https://github.com/W00D00/home-assistant-elero/pull/40) & [Fix execution on HA2023.5.](https://github.com/W00D00/home-assistant-elero/pull/43)
* 3.2.2 - November 17, 2022 [Introduce the unique ID](https://github.com/W00D00/home-assistant-elero/pull/38)
* 3.2.1 - March 10, 2022 [Fix TypeError on HA Shutdowm](https://github.com/W00D00/home-assistant-elero/pull/36)
* 3.2.0 - March 10, 2022 [Added support for HACS](https://github.com/W00D00/home-assistant-elero/issues/23)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/elero/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Support for Elero electrical drives."""

__version__ = "3.2.2"
__version__ = "3.3.1"

import logging

Expand Down
24 changes: 10 additions & 14 deletions custom_components/elero/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.components.cover import (ATTR_POSITION, ATTR_TILT_POSITION,
SUPPORT_CLOSE, SUPPORT_CLOSE_TILT,
SUPPORT_OPEN, SUPPORT_OPEN_TILT,
SUPPORT_SET_POSITION,
SUPPORT_SET_TILT_POSITION,
SUPPORT_STOP, SUPPORT_STOP_TILT,
CoverEntity)
CoverEntity,
CoverEntityFeature)
from homeassistant.components.light import PLATFORM_SCHEMA
from homeassistant.const import (CONF_COVERS, CONF_DEVICE_CLASS, CONF_NAME,
STATE_CLOSED, STATE_CLOSING, STATE_OPEN,
Expand Down Expand Up @@ -72,14 +68,14 @@

# Supported features.
SUPPORTED_FEATURES = {
"close_tilt": SUPPORT_CLOSE_TILT,
"down": SUPPORT_CLOSE,
"open_tilt": SUPPORT_OPEN_TILT,
"set_position": SUPPORT_SET_POSITION,
"set_tilt_position": SUPPORT_SET_TILT_POSITION,
"stop_tilt": SUPPORT_STOP_TILT,
"stop": SUPPORT_STOP,
"up": SUPPORT_OPEN,
"close_tilt": CoverEntityFeature.CLOSE_TILT,
"down": CoverEntityFeature.CLOSE,
"open_tilt": CoverEntityFeature.OPEN_TILT,
"set_position": CoverEntityFeature.SET_POSITION,
"set_tilt_position": CoverEntityFeature.SET_TILT_POSITION,
"stop_tilt": CoverEntityFeature.STOP_TILT,
"stop": CoverEntityFeature.STOP,
"up": CoverEntityFeature.OPEN,
}

ELERO_COVER_DEVICE_CLASSES_SCHEMA = vol.All(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/elero/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"domain": "elero",
"version": "3.2.1",
"version": "3.3.1",
"name": "Elero",
"documentation": "https://github.com/W00D00/home-assistant-elero",
"dependencies": [],
Expand Down

0 comments on commit 9a36fc1

Please sign in to comment.