async def setup_integration(hass: HomeAssistant, aioclient_mock: AiohttpClientMocker, skip_entry_setup: bool=False, setup_error: bool=False) -> MockConfigEntry:
    'Set up the DirecTV integration in Home Assistant.'
    if setup_error:
        aioclient_mock.get(f'http://{HOST}:8080/info/getVersion', status=HTTPStatus.INTERNAL_SERVER_ERROR)
    else:
        mock_connection(aioclient_mock)
    entry = MockConfigEntry(domain=DOMAIN, unique_id=RECEIVER_ID, data={CONF_HOST: HOST, CONF_RECEIVER_ID: RECEIVER_ID})
    entry.add_to_hass(hass)
    if (not skip_entry_setup):
        (await hass.config_entries.async_setup(entry.entry_id))
        (await hass.async_block_till_done())
    return entry
Set up the DirecTV integration in Home Assistant.
async def setup_integration(hass: HomeAssistant, aioclient_mock: AiohttpClientMocker, skip_entry_setup: bool=False, setup_error: bool=False) -> MockConfigEntry:
    
    if setup_error:
        aioclient_mock.get(f'http://{HOST}:8080/info/getVersion', status=HTTPStatus.INTERNAL_SERVER_ERROR)
    else:
        mock_connection(aioclient_mock)
    entry = MockConfigEntry(domain=DOMAIN, unique_id=RECEIVER_ID, data={CONF_HOST: HOST, CONF_RECEIVER_ID: RECEIVER_ID})
    entry.add_to_hass(hass)
    if (not skip_entry_setup):
        (await hass.config_entries.async_setup(entry.entry_id))
        (await hass.async_block_till_done())
    return entry