JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
1.03k stars 85 forks source link

Error exeption in when no card is incerted #378

Closed boheme61 closed 1 year ago

boheme61 commented 1 year ago

Description

I get the following "Errors" for all the cams where i have no sd-cards ( because i don't intend to record on these/some cams) , i've tried to disable all entities which are related to record, etc)


Traceback (most recent call last):
File "/config/custom_components/tapo_control/utils.py", line 151, in findMedia
recordingsList = await hass.async_add_executor_job(tapoController.getRecordingsList)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 569, in getRecordingsList
result = self.executeFunction(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 138, in executeFunction
raise Exception(
Exception: Error: -71105, Response: {"method": "searchDateWithVideo", "result": {}, "error_code": -71105}

PS: it only shows up 1 time for each cam, during restart, Maybe it could be "considered" as a warning, if no record-list/sd-card is found ? 

### Reproduction Steps

1. pick out the sd-card
2. restart HA

### Expected behavior

Could be a "Warning", thou i guess it should then be an "enhancement" :)

### If applicable, add error logs.

_No response_

### Device Firmware

Firmware: C200 1.3.6 Build 230424 -- C310 1.3.2

### Using stream component

Yes

### Does camera work via official integrations?

Yes

### Camera has all attributes filled out in developer tools

Yes

### HASS Environment

ova VM

### Search for similar issues

Yes

### Additional information

_No response_