async def test_get_events_not_event_with_type(protect_client: ProtectApiClient, camera): camera["type"] = EventType.MOTION.value protect_client.get_events_raw = AsyncMock(return_value=[camera ]) # type: ignore assert await protect_client.get_events() == []
async def test_get_events_not_event(protect_client: ProtectApiClient, camera): protect_client.get_events_raw = AsyncMock(return_value=[camera]) # type: ignore assert await protect_client.get_events() == []