Add Reolink serial number to device info of IPC camera (#118834)

* Add UID to dev info

* Add camera_uid to test
This commit is contained in:
starkillerOG 2024-06-05 03:37:40 +02:00 committed by GitHub
parent 46bb9cb014
commit 8723441227
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class ReolinkChannelCoordinatorEntity(ReolinkHostCoordinatorEntity):
model=self._host.api.camera_model(dev_ch),
manufacturer=self._host.api.manufacturer,
sw_version=self._host.api.camera_sw_version(dev_ch),
serial_number=self._host.api.camera_uid(dev_ch),
configuration_url=self._conf_url,
)

View File

@ -85,6 +85,7 @@ def reolink_connect_class() -> Generator[MagicMock, None, None]:
host_mock.camera_model.return_value = TEST_CAM_MODEL
host_mock.camera_name.return_value = TEST_NVR_NAME
host_mock.camera_sw_version.return_value = "v1.1.0.0.0.0000"
host_mock.camera_uid.return_value = TEST_UID
host_mock.session_active = True
host_mock.timeout = 60
host_mock.renewtimer.return_value = 600