support cooling season in proliphix thermostat (#2689)

Instead of always assuming we want to change the heat, instead use the
setback attribute which sets heat / cool setback based on current HVAC
mode. This means that the proliphix thermostat will do sensible things
during cooling season.
This commit is contained in:
Sean Dague 2016-07-31 22:13:36 -04:00 committed by Paulus Schoutsen
parent 1856e0110b
commit 483b0045fc
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ from homeassistant.components.thermostat import (
from homeassistant.const import (
CONF_HOST, CONF_PASSWORD, CONF_USERNAME, TEMP_FAHRENHEIT)
REQUIREMENTS = ['proliphix==0.1.0']
REQUIREMENTS = ['proliphix==0.2.0']
def setup_platform(hass, config, add_devices, discovery_info=None):
@ -72,7 +72,7 @@ class ProliphixThermostat(ThermostatDevice):
@property
def target_temperature(self):
"""Return the temperature we try to reach."""
return self._pdp.setback_heat
return self._pdp.setback
@property
def operation(self):
@ -87,4 +87,4 @@ class ProliphixThermostat(ThermostatDevice):
def set_temperature(self, temperature):
"""Set new target temperature."""
self._pdp.setback_heat = temperature
self._pdp.setback = temperature

View File

@ -232,7 +232,7 @@ phue==0.8
plexapi==1.1.0
# homeassistant.components.thermostat.proliphix
proliphix==0.1.0
proliphix==0.2.0
# homeassistant.components.sensor.systemmonitor
psutil==4.3.0