def mock_connection(aioclient_mock: AiohttpClientMocker) -> None:
    'Mock the DirecTV connection for Home Assistant.'
    aioclient_mock.get(f'http://{HOST}:8080/info/getVersion', text=load_fixture('directv/info-get-version.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/getLocations', text=load_fixture('directv/info-get-locations.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/mode', params={'clientAddr': 'B01234567890'}, text=load_fixture('directv/info-mode-standby.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/mode', params={'clientAddr': '9XXXXXXXXXX9'}, status=HTTPStatus.INTERNAL_SERVER_ERROR, text=load_fixture('directv/info-mode-error.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/mode', text=load_fixture('directv/info-mode.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/remote/processKey', text=load_fixture('directv/remote-process-key.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/tune', text=load_fixture('directv/tv-tune.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', params={'clientAddr': '2CA17D1CD30X'}, text=load_fixture('directv/tv-get-tuned.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', params={'clientAddr': 'A01234567890'}, text=load_fixture('directv/tv-get-tuned-music.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', params={'clientAddr': 'C01234567890'}, status=HTTPStatus.FORBIDDEN, text=load_fixture('directv/tv-get-tuned-restricted.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', text=load_fixture('directv/tv-get-tuned-movie.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
Mock the DirecTV connection for Home Assistant.
def mock_connection(aioclient_mock: AiohttpClientMocker) -> None:
    
    aioclient_mock.get(f'http://{HOST}:8080/info/getVersion', text=load_fixture('directv/info-get-version.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/getLocations', text=load_fixture('directv/info-get-locations.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/mode', params={'clientAddr': 'B01234567890'}, text=load_fixture('directv/info-mode-standby.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/mode', params={'clientAddr': '9XXXXXXXXXX9'}, status=HTTPStatus.INTERNAL_SERVER_ERROR, text=load_fixture('directv/info-mode-error.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/info/mode', text=load_fixture('directv/info-mode.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/remote/processKey', text=load_fixture('directv/remote-process-key.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/tune', text=load_fixture('directv/tv-tune.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', params={'clientAddr': '2CA17D1CD30X'}, text=load_fixture('directv/tv-get-tuned.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', params={'clientAddr': 'A01234567890'}, text=load_fixture('directv/tv-get-tuned-music.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', params={'clientAddr': 'C01234567890'}, status=HTTPStatus.FORBIDDEN, text=load_fixture('directv/tv-get-tuned-restricted.json'), headers={'Content-Type': CONTENT_TYPE_JSON})
    aioclient_mock.get(f'http://{HOST}:8080/tv/getTuned', text=load_fixture('directv/tv-get-tuned-movie.json'), headers={'Content-Type': CONTENT_TYPE_JSON})