Skip to content

Commit 19f02ab

Browse files
Fixes action fan.toggle not supported #1341
1 parent 9cb9587 commit 19f02ab

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
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.12'
22+
VERSION = '1.17.13'
2323
MANIFEST_URL = (
2424
"https://raw.githubusercontent.com/"
2525
"smartHomeHub/SmartIR/{}/"

custom_components/smartir/fan.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ def __init__(self, hass, config, device_data):
108108
self._direction = None
109109
self._last_on_speed = None
110110
self._oscillating = None
111-
self._support_flags = FanEntityFeature.SET_SPEED
111+
self._support_flags = (
112+
FanEntityFeature.SET_SPEED
113+
| FanEntityFeature.TURN_OFF
114+
| FanEntityFeature.TURN_ON)
112115

113116
if (DIRECTION_REVERSE in self._commands and \
114117
DIRECTION_FORWARD in self._commands):

custom_components/smartir/manifest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"codeowners": ["@smartHomeHub"],
77
"requirements": ["aiofiles>=0.6.0"],
88
"homeassistant": "2024.10.0",
9-
"version": "1.17.12",
9+
"version": "1.17.13",
1010
"updater": {
11-
"version": "1.17.12",
12-
"releaseNotes": "-- Fixes media_player and fan attributes",
11+
"version": "1.17.13",
12+
"releaseNotes": "-- Fixes action fan.toggle not supported #1341",
1313
"files": [
1414
"__init__.py",
1515
"climate.py",

0 commit comments

Comments
 (0)