Merge pull request #892 from sdague/f_rounding

round min / max values for temperature
pull/890/head
Paulus Schoutsen 2016-01-13 22:50:15 -08:00
commit 3ec49a0ef0
1 changed files with 2 additions and 2 deletions

View File

@ -224,12 +224,12 @@ class ThermostatDevice(Entity):
@property
def min_temp(self):
""" Return minimum temperature. """
return convert(7, TEMP_CELCIUS, self.unit_of_measurement)
return round(convert(7, TEMP_CELCIUS, self.unit_of_measurement))
@property
def max_temp(self):
""" Return maxmum temperature. """
return convert(35, TEMP_CELCIUS, self.unit_of_measurement)
return round(convert(35, TEMP_CELCIUS, self.unit_of_measurement))
def _convert(self, temp, round_dec=None):
""" Convert temperature from this thermost into user preferred