-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Modified arlo object to make smarter HTTP requests for an async envir… #13445
Conversation
…onment (conn pool, blocking)
homeassistant/components/arlo.py
Outdated
@@ -43,6 +44,7 @@ def setup(hass, config): | |||
from pyarlo import PyArlo | |||
|
|||
arlo = PyArlo(username, password, preload=False) | |||
arlo.session.mount('https://',HTTPAdapter(pool_maxsize=10,pool_block=True)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing whitespace after ','
line too long (83 > 79 characters)
trailing whitespace
homeassistant/components/arlo.py
Outdated
@@ -43,6 +44,8 @@ def setup(hass, config): | |||
from pyarlo import PyArlo | |||
|
|||
arlo = PyArlo(username, password, preload=False) | |||
arlo.session.mount('https://', | |||
HTTPAdapter(pool_maxsize=10, pool_block=True)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line under-indented for visual indent
No description 🤔 |
This also looks like something that needs to be fixed upstream in the pyarlo package. |
Ok. This was the related issue #13176 |
We should fix this upstream. If upstream package is dead as the other issue describes, we should switch package to one with an active maintainer. |
…onment (conn pool, blocking)
Description:
Related issue (if applicable): fixes #13176
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices: