Skip to content

sys_info not None fails assertion #55

@lordmundi

Description

@lordmundi

I apologize if this clutters up your issue system, but I couldn't find any better place to ask a question. I'm working under windows and would like to send commands to an HS100 smartplug. I didn't quite see how to install the module under windows (using pip for example), so I just downloaded and put the kasa directory in the same directory as my script and that seems to let the import happen fine.

But, in my code I have:

from kasa import SmartPlug
from pprint import pformat as pf

# Define the connection to the TPLink HS100 smart plug using the kasa module
plug = SmartPlug("192.168.0.99")
#print("Hardware: %s" % pf(plug.hw_info))
#print("Full sysinfo: %s" % pf(plug.get_sysinfo())) # this prints lots of information about the device

print("Alias is", plug.alias)

As soon as I try to do anything with plug, it fails assertion saying:

  File "bla\kasa\smartdevice.py", line 110, in wrapped
    assert self._sys_info is not None

I'm guessing this means the library isn't connecting to the plug. Am I doing anything wrong? Is there anything under windows that might be breaking this?

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