mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
The target temp (shown in Thermostat card) is not correct when running in heat or cool modes. It is ok for auto mode.
This commit is contained in:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user