'Test update when switch is off.'

def test_update_when_off(self, aioclient_mock):

    aioclient_mock.get(self.resource, text=self.body_off.template)
    run_coroutine_threadsafe(self.switch.async_update(), self.hass.loop).result()
    assert (not self.switch.is_on)
