reolink_aio icon indicating copy to clipboard operation
reolink_aio copied to clipboard

failed mapping JSON data: 'name'

Open shlomki opened this issue 11 months ago • 0 comments

Describe the bug When initializing, the Reolink Home Assistant integration takes a long time to finish, and an error is printed in the log: (channel 0) failed mapping JSON data: 'name', traceback: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/reolink_aio/api.py", line 2706, in map_channel_json_response patrol_name = patrol["name"] ~~~~~~^^^^^^^^ KeyError: 'name'

To Reproduce Use the Reolink integration for Home Assistant, with an older "Reolink C1 Pro" camera. This doesn't happen to me with other models.

Expected behavior Initialization should complete without errors.

Environment: Please provide useful information about your environment, like:

  • Reolink C1 Pro
  • Home Assistant Core on Docker, using the official built-in integration.

shlomki avatar Mar 16 '24 08:03 shlomki