Esempio n. 1
0
 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',
     }}))
Esempio n. 2
0
 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',
     }}))
Esempio n. 3
0
 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',
     }}))
Esempio n. 4
0
 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',
     }}))