Skip to content

Commit

Permalink
Merge pull request #273 from uzlonewolf/thermostat-fix
Browse files Browse the repository at this point in the history
Fix Contrib.ThermostatDevice.SetSetpoint()
  • Loading branch information
jasonacox authored Feb 2, 2023
2 parents 8c774c9 + 91d0612 commit 5b8b406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tinytuya/Contrib/ThermostatDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ def delayUpdates( self ):

def setSetpoint( self, setpoint, cf=None ):
if self.mode == 'cool':
return self.setCoolSetpoint( self, setpoint, cf )
return self.setCoolSetpoint( setpoint, cf )
elif self.mode == 'heat' or self.mode == 'emergencyheat':
return self.setHeatSetpoint( self, setpoint, cf )
return self.setHeatSetpoint( setpoint, cf )
else:
# no idea, let the thermostat figure it out
return self.setMiddleSetpoint( self, setpoint, cf )
return self.setMiddleSetpoint( setpoint, cf )

def setCoolSetpoint( self, setpoint, cf=None ):
k = 'cooling_setpoint_' + self.getCF( cf )
Expand Down

0 comments on commit 5b8b406

Please sign in to comment.