Repository: dask/dask
Issue category: Bug Report

Issue:
Warning raised with default `from_zarr` settings

**Describe the issue**:
Reading a zarr array with `dask.array.from_zarr` raises a `UserWarning`, but I'm not doing anything wrong. 

**Minimal Complete Verifiable Example**:

```python
import dask.array
import zarr

zarr_arr = zarr.open(shape=(6, 6, 6), store="./zeros.zarr", chunks=(3, 3, 2), mode='w')
zarr_arr[:] = 0

dask_arr = dask.array.from_zarr("./zeros.zarr")
```

Raises:

```
/Users/dstansby/software/zarr/hackathon/.venv/lib/python3.12/site-packages/zarr/creation.py:614: UserWarning: ignoring keyword argument 'read_only'
  compressor, fill_value = _kwargs_compat(compressor, fill_value, kwargs)
```

**Anything else we need to know?**:

**Environment**:

- Dask version: 2024.11.2
- zarr version: 2.18.3
- Python version: 3.12
- Operating System: macOS
- Install method (conda, pip, source): pip



Hints:

Patch:
diff --git a/dask/array/core.py b/dask/array/core.py
index 10736af6f9d..0a7ebeb1b7c 100644
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -3754,9 +3754,9 @@ def from_zarr(
                 store = zarr.storage.FSStore(url, **storage_options)
         else:
             store = url
-        z = zarr.open_array(store=store, read_only=True, path=component, **kwargs)
+        z = zarr.open_array(store=store, path=component, **kwargs)
     else:
-        z = zarr.open_array(store=url, read_only=True, path=component, **kwargs)
+        z = zarr.open_array(store=url, path=component, **kwargs)
     chunks = chunks if chunks is not None else z.chunks
     if name is None:
         name = "from-zarr-" + tokenize(z, component, storage_options, chunks, **kwargs)


Test patch: