Skip to content

TypeError: 'coroutine' object is not subscriptable #18

@rafolas

Description

@rafolas

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions