mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Reolink add diagnostics for baichuan (#146667)
* Add baichuan diagnostics * adjust tests
This commit is contained in:
parent
8eebebc586
commit
680b70aa29
@ -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,
|
||||
|
@ -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
|
||||
|
@ -10,6 +10,8 @@
|
||||
'pushAlarm': 7,
|
||||
}),
|
||||
}),
|
||||
'Baichuan only': False,
|
||||
'Baichuan port': 5678,
|
||||
'Chimes': dict({
|
||||
'12345678': dict({
|
||||
'channel': 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user