Reolink add diagnostics for baichuan (#146667)

* Add baichuan diagnostics

* adjust tests
This commit is contained in:
starkillerOG 2025-06-12 19:26:37 +02:00 committed by GitHub
parent 8eebebc586
commit 680b70aa29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,8 @@ async def async_get_config_entry_diagnostics(
"firmware version": api.sw_version,
"HTTPS": api.use_https,
"HTTP(S) port": api.port,
"Baichuan port": api.baichuan.port,
"Baichuan only": api.baichuan_only,
"WiFi connection": api.wifi_connection,
"WiFi signal": api.wifi_signal,
"RTMP enabled": api.rtmp_enabled,

View File

@ -143,6 +143,7 @@ def reolink_connect_class() -> Generator[MagicMock]:
# Baichuan
host_mock.baichuan = create_autospec(Baichuan)
host_mock.baichuan_only = False
# Disable tcp push by default for tests
host_mock.baichuan.port = TEST_BC_PORT
host_mock.baichuan.events_active = False

View File

@ -10,6 +10,8 @@
'pushAlarm': 7,
}),
}),
'Baichuan only': False,
'Baichuan port': 5678,
'Chimes': dict({
'12345678': dict({
'channel': 0,