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

TypeError: 'coroutine' object is not subscriptable #18

Closed
rafolas opened this issue Jun 1, 2021 · 1 comment
Closed

TypeError: 'coroutine' object is not subscriptable #18

rafolas opened this issue Jun 1, 2021 · 1 comment

Comments

@rafolas
Copy link

rafolas commented Jun 1, 2021

I tried to read the consumption and since the script was not responding I broke the execution. Now I get these errors. ("TypeError: 'coroutine' object is not subscriptable" and "Unclosed client session")
I understand that the unclosed client session is a matter of time but the other one I don't have any idea of what can it be solved.

line 108, in watthourmeter
return await self.measurement()["consumption"]
TypeError: 'coroutine' object is not subscriptable
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fca57225ed0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fca575ecad0>, 1.628017473)]']
connector: <aiohttp.connector.TCPConnector object at 0x7fca575af450>

thanks for the tool!

@hectorespert
Copy link
Owner

Fixed in version 1.3.1

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

2 participants