Skip to content

Commit df52192

Browse files
authored
HA Update : Fix for fan switch (#26)
* Add supported_features * Update manifest.json
1 parent 2a71ba9 commit df52192

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

custom_components/tinxy/fan.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ def preset_modes(self) -> list[str] | None:
102102
@property
103103
def supported_features(self) -> FanEntityFeature:
104104
"""List all supported features"""
105-
return FanEntityFeature.PRESET_MODE
105+
return (
106+
FanEntityFeature.PRESET_MODE
107+
| FanEntityFeature.TURN_ON
108+
| FanEntityFeature.TURN_OFF
109+
)
106110

107111
@property
108112
def preset_mode(self) -> str | None:

custom_components/tinxy/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"iot_class": "cloud_polling",
1111
"requirements": [],
1212
"ssdp": [],
13-
"version": "3.0.6",
13+
"version": "3.2.0",
1414
"zeroconf": [
1515
{
1616
"type": "_http._tcp.local.",

0 commit comments

Comments
 (0)