mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Bumps version of pyunifiprotect to 4.0.4 (#73722)
This commit is contained in:
committed by
GitHub
parent
109d1844b3
commit
3851c7b4b4
@@ -28,6 +28,7 @@ from .conftest import (
|
||||
assert_entity_counts,
|
||||
enable_entity,
|
||||
ids_from_device_description,
|
||||
reset_objects,
|
||||
)
|
||||
|
||||
CAMERA_SWITCHES_BASIC = [
|
||||
@@ -51,13 +52,13 @@ async def light_fixture(
|
||||
# disable pydantic validation so mocking can happen
|
||||
Light.__config__.validate_assignment = False
|
||||
|
||||
light_obj = mock_light.copy(deep=True)
|
||||
light_obj = mock_light.copy()
|
||||
light_obj._api = mock_entry.api
|
||||
light_obj.name = "Test Light"
|
||||
light_obj.is_ssh_enabled = False
|
||||
light_obj.light_device_settings.is_indicator_enabled = False
|
||||
|
||||
mock_entry.api.bootstrap.reset_objects()
|
||||
reset_objects(mock_entry.api.bootstrap)
|
||||
mock_entry.api.bootstrap.lights = {
|
||||
light_obj.id: light_obj,
|
||||
}
|
||||
@@ -81,7 +82,7 @@ async def camera_fixture(
|
||||
# disable pydantic validation so mocking can happen
|
||||
Camera.__config__.validate_assignment = False
|
||||
|
||||
camera_obj = mock_camera.copy(deep=True)
|
||||
camera_obj = mock_camera.copy()
|
||||
camera_obj._api = mock_entry.api
|
||||
camera_obj.channels[0]._api = mock_entry.api
|
||||
camera_obj.channels[1]._api = mock_entry.api
|
||||
@@ -110,7 +111,7 @@ async def camera_fixture(
|
||||
camera_obj.osd_settings.is_debug_enabled = False
|
||||
camera_obj.smart_detect_settings.object_types = []
|
||||
|
||||
mock_entry.api.bootstrap.reset_objects()
|
||||
reset_objects(mock_entry.api.bootstrap)
|
||||
mock_entry.api.bootstrap.cameras = {
|
||||
camera_obj.id: camera_obj,
|
||||
}
|
||||
@@ -134,7 +135,7 @@ async def camera_none_fixture(
|
||||
# disable pydantic validation so mocking can happen
|
||||
Camera.__config__.validate_assignment = False
|
||||
|
||||
camera_obj = mock_camera.copy(deep=True)
|
||||
camera_obj = mock_camera.copy()
|
||||
camera_obj._api = mock_entry.api
|
||||
camera_obj.channels[0]._api = mock_entry.api
|
||||
camera_obj.channels[1]._api = mock_entry.api
|
||||
@@ -153,7 +154,7 @@ async def camera_none_fixture(
|
||||
camera_obj.osd_settings.is_logo_enabled = False
|
||||
camera_obj.osd_settings.is_debug_enabled = False
|
||||
|
||||
mock_entry.api.bootstrap.reset_objects()
|
||||
reset_objects(mock_entry.api.bootstrap)
|
||||
mock_entry.api.bootstrap.cameras = {
|
||||
camera_obj.id: camera_obj,
|
||||
}
|
||||
@@ -177,7 +178,8 @@ async def camera_privacy_fixture(
|
||||
# disable pydantic validation so mocking can happen
|
||||
Camera.__config__.validate_assignment = False
|
||||
|
||||
camera_obj = mock_camera.copy(deep=True)
|
||||
# mock_camera._update_lock = None
|
||||
camera_obj = mock_camera.copy()
|
||||
camera_obj._api = mock_entry.api
|
||||
camera_obj.channels[0]._api = mock_entry.api
|
||||
camera_obj.channels[1]._api = mock_entry.api
|
||||
@@ -197,7 +199,7 @@ async def camera_privacy_fixture(
|
||||
camera_obj.osd_settings.is_logo_enabled = False
|
||||
camera_obj.osd_settings.is_debug_enabled = False
|
||||
|
||||
mock_entry.api.bootstrap.reset_objects()
|
||||
reset_objects(mock_entry.api.bootstrap)
|
||||
mock_entry.api.bootstrap.cameras = {
|
||||
camera_obj.id: camera_obj,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user