Add HVAC to demo

This commit is contained in:
Paulus Schoutsen 2016-05-08 23:21:26 -07:00
parent 09483e3be4
commit 20dad9f194
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ COMPONENTS_WITH_DEMO_PLATFORM = [
'camera', 'camera',
'device_tracker', 'device_tracker',
'garage_door', 'garage_door',
'hvac',
'light', 'light',
'lock', 'lock',
'media_player', 'media_player',

View File

@ -457,12 +457,12 @@ class HvacDevice(Entity):
@property @property
def min_temp(self): def min_temp(self):
"""Return the minimum temperature.""" """Return the minimum temperature."""
return self._convert_for_display(7) return convert(7, TEMP_CELCIUS, self.unit_of_measurement)
@property @property
def max_temp(self): def max_temp(self):
"""Return the maximum temperature.""" """Return the maximum temperature."""
return self._convert_for_display(35) return convert(35, TEMP_CELCIUS, self.unit_of_measurement)
@property @property
def min_humidity(self): def min_humidity(self):