Skip to content

Fix async contextmanager session#1

Merged
jeradM merged 1 commit intojeradM:masterfrom
OttoWinter:patch-1
Mar 10, 2018
Merged

Fix async contextmanager session#1
jeradM merged 1 commit intojeradM:masterfrom
OttoWinter:patch-1

Conversation

@OttoWinter
Copy link
Copy Markdown
Contributor

aiohttp's ClientSession contextmanager needs to be called with the async with syntax. See https://aiohttp.readthedocs.io/en/stable/client_quickstart.html for more info.

It was causing errors such as this one: home-assistant/core#13032 (comment)

@jeradM
Copy link
Copy Markdown
Owner

jeradM commented Mar 10, 2018

Thanks

@jeradM jeradM merged commit 05a8fae into jeradM:master Mar 10, 2018
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

Successfully merging this pull request may close these issues.

2 participants