'Test turning off the device.'

def test_turn_off(self):

    self.assertEqual(STATE_OFF, self.get_entity().state)
    fan.turn_on(self.hass, FAN_ENTITY_ID)
    self.hass.block_till_done()
    self.assertNotEqual(STATE_OFF, self.get_entity().state)
    fan.turn_off(self.hass, FAN_ENTITY_ID)
    self.hass.block_till_done()
    self.assertEqual(STATE_OFF, self.get_entity().state)
