Unclosed Client Session Error · python-kasa/python-kasa · Discussion #1525 · GitHub
Skip to content
Discussion options

You must be logged in to vote

I figured it out. I missed the device.disconnect() method somehow. Adding

await device.disconnect()

to the end of the for key in devices loop seems to have solved the problem. I will leave this here as an example for others if they encounter the same issue. This isn't included in the examples but after extensively going through the docs, it is possible to sort it out.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by buelowp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant