示例#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',
     }}))
示例#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',
     }}))
示例#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',
     }}))
示例#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',
     }}))