rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
404 stars 82 forks source link

Fix hassio warnings and false True (positive) for DisableLinkage feature #394

Closed jandusek4 closed 1 month ago

jandusek4 commented 1 month ago

Fix hassio warning about blocking SSL setup Detected blocking call to load_default_certs and setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done

Also fixed approach how to detect if DisableLinkage feature is present which return false True (positive) even when the feature is not present in the camera and direct cgi-bin call return 400 error.

rroller commented 1 month ago

Thank you!

rroller commented 1 month ago

Released in https://github.com/rroller/dahua/releases/tag/0.9.61

jandusek4 commented 1 month ago

For retest, I replaced my local modified code with latest release and is is OK in logs.