Skip to content

Commit

Permalink
Fix not being able to change temperature when in schedule.
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Aug 7, 2017
1 parent fe4458b commit 95352b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lyric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ def thermostatSetpointStatus(self):
if 'thermostatSetpointStatus' in self.changeableValues:
return self.changeableValues['thermostatSetpointStatus']

@thermostatSetpointStatus.setter
def thermostatSetpointStatus(self, thermostatSetpointStatus):
self.updateThermostat(thermostatSetpointStatus=thermostatSetpointStatus)

@property
def nextPeriodTime(self):
if 'nextPeriodTime' in self.changeableValues:
Expand Down Expand Up @@ -507,10 +511,10 @@ def temperatureSetpoint(self, setpoint, mode=None):
mode = 'Heat';

if mode=='Cool':
self.updateThermostat(mode=mode, coolSetpoint=setpoint)
self.updateThermostat(mode=mode, coolSetpoint=setpoint, thermostatSetpointStatus='TemporaryHold')

if mode=='Heat':
self.updateThermostat(mode=mode, heatSetpoint=setpoint)
self.updateThermostat(mode=mode, heatSetpoint=setpoint, thermostatSetpointStatus='TemporaryHold')

@property
def can_heat(self):
Expand Down

0 comments on commit 95352b0

Please sign in to comment.