mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
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:
parent
46bb9cb014
commit
8723441227
@ -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,
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user