File tree 2 files changed +4
-2
lines changed
custom_components/comfoconnect 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
check :
2
2
@poetry run ruff check
3
+ @poetry run ruff format --check
3
4
4
5
codefix :
5
- @poetry run ruff format
6
6
@poetry run ruff check --fix
7
+ @poetry run ruff format
7
8
8
9
.PHONY : check codefix
Original file line number Diff line number Diff line change @@ -51,9 +51,10 @@ async def async_setup_entry(
51
51
class ComfoConnectFan (FanEntity ):
52
52
"""Representation of the ComfoConnect fan platform."""
53
53
54
+ _attr_enable_turn_on_off_backwards_compatibility = False
54
55
_attr_icon = "mdi:air-conditioner"
55
56
_attr_should_poll = False
56
- _attr_supported_features = FanEntityFeature .SET_SPEED | FanEntityFeature .PRESET_MODE
57
+ _attr_supported_features = FanEntityFeature .SET_SPEED | FanEntityFeature .PRESET_MODE | FanEntityFeature . TURN_ON | FanEntityFeature . TURN_OFF
57
58
_attr_preset_modes = list (PRESET_MODES )
58
59
_attr_speed_count = len (FAN_SPEEDS )
59
60
_attr_has_entity_name = True
You can’t perform that action at this time.
0 commit comments