mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-26 16:46:23 +00:00
cli: add 'time' command to get the current time from the device
This commit is contained in:
parent
95b743f11d
commit
34347e59ae
@ -187,6 +187,13 @@ def led(dev, state):
|
|||||||
click.echo("LED state: %s" % dev.led)
|
click.echo("LED state: %s" % dev.led)
|
||||||
|
|
||||||
|
|
||||||
|
@cli.command()
|
||||||
|
@pass_dev
|
||||||
|
def time(dev):
|
||||||
|
"""Get the device time."""
|
||||||
|
click.echo(dev.time)
|
||||||
|
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
@pass_dev
|
@pass_dev
|
||||||
def on(plug):
|
def on(plug):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user