Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InsecureRequestWarning issues even when SSL not used #56

Open
glyndon opened this issue Feb 19, 2023 · 0 comments
Open

InsecureRequestWarning issues even when SSL not used #56

glyndon opened this issue Feb 19, 2023 · 0 comments

Comments

@glyndon
Copy link

glyndon commented Feb 19, 2023

  • openwrt-luci-rpc version: 1.1.11
  • Python version: 3.10
  • Operating System: Linux

Description

Using this in HomeAssistant to track devices.
Despite setting to false both ssl and verify_ssl, the urllib3 still issues (and fills logs with) the error InsecureRequestWarning

What I Did

de-indented, by one level, lines 48-51 in openwrt_luci_rpc.py

Because of the indentation level of lines 48-51, they are only run when ssl is true, however, the library issues the warning even though it was told to use no SSL. Therefore the warning needs to be disabled whenever verify_ssl is set to false, regardless of the setting of ssl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant