mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Merge pull request #729 from mchrisb03/dev
Correct target temp for ecobee in heat or cool mode
This commit is contained in:
commit
13b0d2afa3
@ -87,7 +87,13 @@ class Thermostat(ThermostatDevice):
|
|||||||
@property
|
@property
|
||||||
def target_temperature(self):
|
def target_temperature(self):
|
||||||
""" Returns the temperature we try to reach. """
|
""" Returns the temperature we try to reach. """
|
||||||
return (self.target_temperature_low + self.target_temperature_high) / 2
|
if self.hvac_mode == 'heat' or self.hvac_mode == 'auxHeatOnly':
|
||||||
|
return self.target_temperature_low
|
||||||
|
elif self.hvac_mode == 'cool':
|
||||||
|
return self.target_temperature_high
|
||||||
|
else:
|
||||||
|
return (self.target_temperature_low +
|
||||||
|
self.target_temperature_high) / 2
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target_temperature_low(self):
|
def target_temperature_low(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user