Skip to content

Commit 2b28f68

Browse files
authored
Merge pull request #30 from jwillemsen/jwi-turnonoff
Set necessary flag for turn_on/turn_off warning
2 parents 12681d7 + 3e92c15 commit 2b28f68

File tree

1 file changed

+2
-2
lines changed
  • custom_components/daikin_residential_altherma

1 file changed

+2
-2
lines changed

custom_components/daikin_residential_altherma/climate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
141141

142142
class DaikinClimate(ClimateEntity):
143143
"""Representation of a Daikin HVAC."""
144+
_enable_turn_on_off_backwards_compatibility = False # Remove with HA 2025.1
144145

145146
# Setpoint is the setpoint string under temperatureControl/value/operationsModes/mode/setpoints, for example roomTemperature/leavingWaterOffset
146147
def __init__(self, device, setpoint):
@@ -225,8 +226,7 @@ def available(self):
225226

226227
@property
227228
def supported_features(self):
228-
_enable_turn_on_off_backwards_compatibility = False # Remove after HA 2025.1
229-
supported_features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
229+
supported_features = (ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON)
230230
setpointdict = self.setpoint()
231231
cc = self.climateControl()
232232
if setpointdict is not None and setpointdict["settable"] == True:

0 commit comments

Comments
 (0)