rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
369 stars 71 forks source link

Integration polling sensors that are not selected #365

Open mouldybread opened 3 weeks ago

mouldybread commented 3 weeks ago

Recently I dealt with the same issue described in #354

As part of this I updated my NVR. This resulted in /cgi-bin/configManager.cgi?action=getConfig&name=SmartMotionDetect refusing to load, which is ugly but fine because I don't use it. However it means that the device fails to initialize:

2024-06-21 15:40:48.902 WARNING (MainThread) [custom_components.dahua] TimeoutError fetching information from http://****:80/cgi-bin/configManager.cgi?action=getConfig&name=SmartMotionDetect

2024-06-21 15:40:48.902 ERROR (MainThread) [custom_components.dahua] Failed to initialize device at ****

I did not select this sensor when I added the device, so the integration shouldn't be polling this url.