def setUp(self): # pylint: disable=invalid-name """Setup things to be run when tests are started.""" self.hass = get_test_home_assistant() self.hass.config.temperature_unit = TEMP_CELSIUS self.assertTrue(hvac.setup(self.hass, {'hvac': { 'platform': 'demo', }}))
def setUp(self): # pylint: disable=invalid-name """Setup things to be run when tests are started.""" self.hass = get_test_home_assistant() self.hass.config.units = METRIC_SYSTEM self.assertTrue(hvac.setup(self.hass, {'hvac': { 'platform': 'demo', }}))