Add Reolink serial number (#104383)

* Add Reolink serial number

* fix tests
pull/104124/head^2
starkillerOG 2023-11-22 22:54:48 +01:00 committed by GitHub
parent 3e641b3ef2
commit a3c0f36592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class ReolinkBaseCoordinatorEntity(CoordinatorEntity[DataUpdateCoordinator[_T]])
manufacturer=self._host.api.manufacturer,
hw_version=self._host.api.hardware_version,
sw_version=self._host.api.sw_version,
serial_number=self._host.api.uid,
configuration_url=self._conf_url,
)

View File

@ -20,6 +20,7 @@ TEST_PASSWORD = "password"
TEST_PASSWORD2 = "new_password"
TEST_MAC = "ab:cd:ef:gh:ij:kl"
TEST_MAC2 = "12:34:56:78:9a:bc"
TEST_UID = "ABC1234567D89EFG"
TEST_PORT = 1234
TEST_NVR_NAME = "test_reolink_name"
TEST_NVR_NAME2 = "test2_reolink_name"
@ -53,6 +54,7 @@ def reolink_connect_class(
host_mock.unsubscribe.return_value = True
host_mock.logout.return_value = True
host_mock.mac_address = TEST_MAC
host_mock.uid = TEST_UID
host_mock.onvif_enabled = True
host_mock.rtmp_enabled = True
host_mock.rtsp_enabled = True