mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-03 22:22:06 +00:00 
			
		
		
		
	cli: add 'time' command to get the current time from the device
This commit is contained in:
		@@ -187,6 +187,13 @@ def led(dev, state):
 | 
			
		||||
        click.echo("LED state: %s" % dev.led)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@cli.command()
 | 
			
		||||
@pass_dev
 | 
			
		||||
def time(dev):
 | 
			
		||||
    """Get the device time."""
 | 
			
		||||
    click.echo(dev.time)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@cli.command()
 | 
			
		||||
@pass_dev
 | 
			
		||||
def on(plug):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user