Reolink add media browser for playback of recordings (#103407)

This commit is contained in:
starkillerOG 2023-11-21 23:43:56 +01:00 committed by GitHub
parent 91e0a53cb2
commit aea15ee20c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 624 additions and 0 deletions

View file

@ -19,8 +19,10 @@ TEST_USERNAME2 = "username"
TEST_PASSWORD = "password"
TEST_PASSWORD2 = "new_password"
TEST_MAC = "ab:cd:ef:gh:ij:kl"
TEST_MAC2 = "12:34:56:78:9a:bc"
TEST_PORT = 1234
TEST_NVR_NAME = "test_reolink_name"
TEST_NVR_NAME2 = "test2_reolink_name"
TEST_USE_HTTPS = True
@ -59,11 +61,15 @@ def reolink_connect_class(
host_mock.use_https = TEST_USE_HTTPS
host_mock.is_admin = True
host_mock.user_level = "admin"
host_mock.stream_channels = [0]
host_mock.sw_version_update_required = False
host_mock.hardware_version = "IPC_00000"
host_mock.sw_version = "v1.0.0.0.0.0000"
host_mock.manufacturer = "Reolink"
host_mock.model = "RLC-123"
host_mock.camera_model.return_value = "RLC-123"
host_mock.camera_name.return_value = TEST_NVR_NAME
host_mock.camera_sw_version.return_value = "v1.1.0.0.0.0000"
host_mock.session_active = True
host_mock.timeout = 60
host_mock.renewtimer.return_value = 600