Skip to content

Commit

Permalink
Merge pull request #30 from jwillemsen/jwi-turnonoff
Browse files Browse the repository at this point in the history
Set necessary flag for turn_on/turn_off warning
  • Loading branch information
jwillemsen authored Feb 8, 2024
2 parents 12681d7 + 3e92c15 commit 2b28f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/daikin_residential_altherma/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ async def async_setup_entry(hass, entry, async_add_entities):

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

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

@property
def supported_features(self):
_enable_turn_on_off_backwards_compatibility = False # Remove after HA 2025.1
supported_features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
supported_features = (ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON)
setpointdict = self.setpoint()
cc = self.climateControl()
if setpointdict is not None and setpointdict["settable"] == True:
Expand Down

0 comments on commit 2b28f68

Please sign in to comment.