Beispiel #1
0
 def test_set_aux_heat_bad_attr(self):
     """Test setting the auxillary heater without required attribute."""
     state = self.hass.states.get(ENTITY_HVAC)
     self.assertEqual('off', state.attributes.get('aux_heat'))
     hvac.set_aux_heat(self.hass, None, ENTITY_HVAC)
     self.hass.pool.block_till_done()
     self.assertEqual('off', state.attributes.get('aux_heat'))
Beispiel #2
0
 def test_set_aux_heat_bad_attr(self):
     """Test setting the auxillary heater without required attribute."""
     state = self.hass.states.get(ENTITY_HVAC)
     self.assertEqual('off', state.attributes.get('aux_heat'))
     hvac.set_aux_heat(self.hass, None, ENTITY_HVAC)
     self.hass.pool.block_till_done()
     self.assertEqual('off', state.attributes.get('aux_heat'))
Beispiel #3
0
 def test_set_aux_heat_off(self):
     """Test setting the auxillary heater off/false."""
     hvac.set_aux_heat(self.hass, False, ENTITY_HVAC)
     self.hass.pool.block_till_done()
     state = self.hass.states.get(ENTITY_HVAC)
     self.assertEqual('off', state.attributes.get('aux_heat'))
Beispiel #4
0
 def test_set_aux_heat_on(self):
     """Test setting the axillary heater on/true."""
     hvac.set_aux_heat(self.hass, True, ENTITY_HVAC)
     self.hass.pool.block_till_done()
     state = self.hass.states.get(ENTITY_HVAC)
     self.assertEqual('on', state.attributes.get('aux_heat'))
Beispiel #5
0
 def test_set_aux_heat_off(self):
     """Test setting the auxillary heater off/false."""
     hvac.set_aux_heat(self.hass, False, ENTITY_HVAC)
     self.hass.pool.block_till_done()
     state = self.hass.states.get(ENTITY_HVAC)
     self.assertEqual('off', state.attributes.get('aux_heat'))
Beispiel #6
0
 def test_set_aux_heat_on(self):
     """Test setting the axillary heater on/true."""
     hvac.set_aux_heat(self.hass, True, ENTITY_HVAC)
     self.hass.pool.block_till_done()
     state = self.hass.states.get(ENTITY_HVAC)
     self.assertEqual('on', state.attributes.get('aux_heat'))