mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +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,
|
"firmware version": api.sw_version,
|
||||||
"HTTPS": api.use_https,
|
"HTTPS": api.use_https,
|
||||||
"HTTP(S) port": api.port,
|
"HTTP(S) port": api.port,
|
||||||
|
"Baichuan port": api.baichuan.port,
|
||||||
|
"Baichuan only": api.baichuan_only,
|
||||||
"WiFi connection": api.wifi_connection,
|
"WiFi connection": api.wifi_connection,
|
||||||
"WiFi signal": api.wifi_signal,
|
"WiFi signal": api.wifi_signal,
|
||||||
"RTMP enabled": api.rtmp_enabled,
|
"RTMP enabled": api.rtmp_enabled,
|
||||||
|
@ -143,6 +143,7 @@ def reolink_connect_class() -> Generator[MagicMock]:
|
|||||||
|
|
||||||
# Baichuan
|
# Baichuan
|
||||||
host_mock.baichuan = create_autospec(Baichuan)
|
host_mock.baichuan = create_autospec(Baichuan)
|
||||||
|
host_mock.baichuan_only = False
|
||||||
# Disable tcp push by default for tests
|
# Disable tcp push by default for tests
|
||||||
host_mock.baichuan.port = TEST_BC_PORT
|
host_mock.baichuan.port = TEST_BC_PORT
|
||||||
host_mock.baichuan.events_active = False
|
host_mock.baichuan.events_active = False
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
'pushAlarm': 7,
|
'pushAlarm': 7,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
'Baichuan only': False,
|
||||||
|
'Baichuan port': 5678,
|
||||||
'Chimes': dict({
|
'Chimes': dict({
|
||||||
'12345678': dict({
|
'12345678': dict({
|
||||||
'channel': 0,
|
'channel': 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user