mirror of
https://github.com/elisspace/core.git
synced 2026-09-30 06:19:55 +00:00
Bump unifiprotect to 4.8.1 (#91522)
This commit is contained in:
@@ -7,6 +7,8 @@ from datetime import datetime, timedelta
|
||||
from functools import partial
|
||||
from ipaddress import IPv4Address
|
||||
import json
|
||||
from pathlib import Path
|
||||
from tempfile import gettempdir
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
@@ -105,6 +107,7 @@ def mock_ufp_client(bootstrap: Bootstrap):
|
||||
client.bootstrap = bootstrap
|
||||
client._bootstrap = bootstrap
|
||||
client.api_path = "/api"
|
||||
client.cache_dir = Path(gettempdir()) / "ufp_cache"
|
||||
# functionality from API client tests actually need
|
||||
client._stream_response = partial(ProtectApiClient._stream_response, client)
|
||||
client.get_camera_video = partial(ProtectApiClient.get_camera_video, client)
|
||||
|
||||
Reference in New Issue
Block a user