Skip to content

Set timeout using command line parameters #310

@nonfatalexec

Description

@nonfatalexec

I'm running python-kasa on a Raspberry Pi Zero, but due to the slowness of a Zero compared to other devices, I frequently get a timeout error in the form of kasa.exceptions.SmartDeviceException: Unable to connect to the device:. My workaround is to increase the default timeout in cli.py @click.option("--timeout", default=3, required=False). It would be better if the timeout can be passed as a command line parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions