Skip to content

Commit

Permalink
Fixes action fan.toggle not supported #1341
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilis-panos committed Jan 5, 2025
1 parent 9cb9587 commit 19f02ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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.12'
VERSION = '1.17.13'
MANIFEST_URL = (
"https://raw.githubusercontent.com/"
"smartHomeHub/SmartIR/{}/"
Expand Down
5 changes: 4 additions & 1 deletion custom_components/smartir/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ def __init__(self, hass, config, device_data):
self._direction = None
self._last_on_speed = None
self._oscillating = None
self._support_flags = FanEntityFeature.SET_SPEED
self._support_flags = (
FanEntityFeature.SET_SPEED
| FanEntityFeature.TURN_OFF
| FanEntityFeature.TURN_ON)

if (DIRECTION_REVERSE in self._commands and \
DIRECTION_FORWARD in self._commands):
Expand Down
6 changes: 3 additions & 3 deletions custom_components/smartir/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"codeowners": ["@smartHomeHub"],
"requirements": ["aiofiles>=0.6.0"],
"homeassistant": "2024.10.0",
"version": "1.17.12",
"version": "1.17.13",
"updater": {
"version": "1.17.12",
"releaseNotes": "-- Fixes media_player and fan attributes",
"version": "1.17.13",
"releaseNotes": "-- Fixes action fan.toggle not supported #1341",
"files": [
"__init__.py",
"climate.py",
Expand Down

0 comments on commit 19f02ab

Please sign in to comment.