Skip to content
This repository was archived by the owner on Apr 23, 2022. It is now read-only.
This repository was archived by the owner on Apr 23, 2022. It is now read-only.

RuntimeError: Cannot reopen a client instance, once it has been closed. #5

Description

@mdale100

Thanks for your work on this integration!

When trying to add the integration, I'm getting the following error. I'm running 2021.9.7 with 1.0.4 of this integration

2021-09-27 19:03:32 ERROR (MainThread) [custom_components.warzone.config_flow] Unexpected exception Traceback (most recent call last): File "/config/custom_components/warzone/config_flow.py", line 76, in async_step_user info = await validate_input(self.hass, user_input) File "/config/custom_components/warzone/config_flow.py", line 50, in validate_input if not await wz.authenticate(): File "/config/custom_components/warzone/config_flow.py", line 39, in authenticate client = await Login(self.username, self.password) File "/config/custom_components/warzone/lib/auth.py", line 133, in Login await auth.SubmitLogin() File "/config/custom_components/warzone/lib/auth.py", line 103, in SubmitLogin async with self.session as client: File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1955, in __aenter__ raise RuntimeError(msg) RuntimeError: Cannot reopen a client instance, once it has been closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions