mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
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:
parent
1856e0110b
commit
483b0045fc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user