* Zwave hvac fix

* Zwave hvac fix and move max min temp to base

* Tests
This commit is contained in:
John Arild Berentsen 2016-06-07 17:43:46 +02:00 committed by Paulus Schoutsen
parent 042a482ef1
commit 202a8dba8e
3 changed files with 4 additions and 14 deletions

View File

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

View File

@ -233,13 +233,3 @@ class ZWaveHvac(ZWaveDeviceEntity, HvacDevice):
class_id=COMMAND_CLASS_CONFIGURATION).values():
if value.command_class == 112 and value.index == 33:
value.data = int(swing_mode)
@property
def min_temp(self):
"""Return the minimum temperature."""
return self._convert_for_display(19)
@property
def max_temp(self):
"""Return the maximum temperature."""
return self._convert_for_display(30)

View File

@ -43,8 +43,8 @@ class TestDemoHvac(unittest.TestCase):
def test_default_setup_params(self):
"""Test the setup with default parameters."""
state = self.hass.states.get(ENTITY_HVAC)
self.assertEqual(7, state.attributes.get('min_temp'))
self.assertEqual(35, state.attributes.get('max_temp'))
self.assertEqual(19, state.attributes.get('min_temp'))
self.assertEqual(30, state.attributes.get('max_temp'))
self.assertEqual(30, state.attributes.get('min_humidity'))
self.assertEqual(99, state.attributes.get('max_humidity'))