'Test handling an event from LiteJet.'

def test_released_event(self):

    self.switch_pressed_callbacks[ENTITY_OTHER_SWITCH_NUMBER]()
    self.hass.block_till_done()
    assert switch.is_on(self.hass, ENTITY_OTHER_SWITCH)
    self.switch_released_callbacks[ENTITY_OTHER_SWITCH_NUMBER]()
    self.hass.block_till_done()
    assert (not switch.is_on(self.hass, ENTITY_OTHER_SWITCH))
    assert (not switch.is_on(self.hass, ENTITY_SWITCH))
    assert (self.other_switch().state == 'off')
    assert (self.switch().state == 'off')
