Skip to content

Reolink Integration Generating Errors with core-2025.1.2 #135863

Open
@sergioblesa

Description

@sergioblesa

The problem

Since I updated I'm getting the following errors for a E1 Zoom camera in an automation call, when trying to take an snapshot:

Registrador: homeassistant.components.automation.aviso_puerta_abierta_beta
Fuente: helpers/script.py:526
integración: Automatización (documentación, problemas)
Ocurrió por primera vez: 17:27:03 (3 ocurrencias)
Última vez registrado: 17:29:07

Aviso puerta abierta (beta): Error executing script. Unexpected error for call_service at pos 2:
Aviso puerta abierta (beta): Parallel action at step 1: parallel 1: Error executing script. Unexpected error for call_service at pos 1:
Aviso puerta abierta (beta): Error executing script. Unexpected error for parallel at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 1182, in async_handle_snapshot_service
else await camera.async_camera_image()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/reolink/util.py", line 103, in decorator_raise_translated_error
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/reolink/camera.py", line 148, in async_camera_image
return await self._host.api.get_snapshot(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._channel, self.entity_description.stream
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/reolink_aio/api.py", line 3044, in get_snapshot
response = await self.send(body, param, expected_response_type="image/jpeg")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/reolink_aio/api.py", line 5385, in send
return await self.send_chunk(body, param, expected_response_type, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/reolink_aio/api.py", line 5468, in send_chunk
async with self._send_mutex:
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/locks.py", line 14, in aenter
await self.acquire()
File "/usr/local/lib/python3.13/asyncio/locks.py", line 110, in acquire
await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 1178, in async_handle_snapshot_service
async with asyncio.timeout(CAMERA_IMAGE_TIMEOUT):
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError

What version of Home Assistant Core has the issue?

2025.1.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/reolink/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions