'Test update when unknown status returned.'

def test_update_when_unknown(self, aioclient_mock):

    aioclient_mock.get(self.resource, text='unknown    status')
    run_coroutine_threadsafe(self.switch.async_update(), self.hass.loop).result()
    assert (self.switch.is_on is None)
