Skip to content

Help needed - awaiting game  #179

@yu-conn

Description

@yu-conn

I've been trying just to use the sample code in the API documentation (copied and pasted this directly, except changing to my kasa plug's IP address)

Screen Shot 2021-07-05 at 4 47 43 PM

but I keep getting this error from the await update line

Screen Shot 2021-07-05 at 4 50 30 PM

I've also tried the super simple code example:

import asyncio
dev = SmartDevice("<my plug's IP address>")
asyncio.run(dev.update())

but it stalls on the third line until outputting the same error. The update() line seems to be holding everything up whatever I try, since I need to await it before accessing any info about the SmartDevice. Any advice on how to address this? Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions