mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Prevent errors when Reolink privacy mode is turned on (#136506)
This commit is contained in:
@@ -126,6 +126,7 @@ def reolink_connect_class() -> Generator[MagicMock]:
|
||||
host_mock.baichuan = create_autospec(Baichuan)
|
||||
# Disable tcp push by default for tests
|
||||
host_mock.baichuan.events_active = False
|
||||
host_mock.baichuan.privacy_mode.return_value = False
|
||||
host_mock.baichuan.subscribe_events.side_effect = ReolinkError("Test error")
|
||||
yield host_mock_class
|
||||
|
||||
|
||||
Reference in New Issue
Block a user