mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Merge pull request #892 from sdague/f_rounding
round min / max values for temperature
This commit is contained in:
commit
3ec49a0ef0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user