'Setup the class.'

@classmethod
def setUpClass(cls):

    cls.hass = hass = get_test_home_assistant()
    run_coroutine_threadsafe(core_components.async_setup(hass, {core.DOMAIN: {}}), hass.loop).result()
    setup.setup_component(hass, http.DOMAIN, {http.DOMAIN: {http.CONF_SERVER_PORT: HTTP_SERVER_PORT}})
    with patch('homeassistant.components.emulated_hue.UPNPResponderThread'):
        setup.setup_component(hass, emulated_hue.DOMAIN, {emulated_hue.DOMAIN: {emulated_hue.CONF_LISTEN_PORT: BRIDGE_SERVER_PORT}})
    cls.hass.start()
