Open davidc opened 3 years ago
That patch is outdated, simply add
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
after
if ssl_verify is False:
warnings.simplefilter("default", category=InsecureRequestWarning)
This code does not work and also if the caller has already called
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
it prevents that from working either:Removing that code from the Controller constructor allows disable_warnings() to do its job again and actually disable the warning.
pyunifi current git version as of today.