mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Fix cli command for device off (#1121)
Was previously missed when using the full `kasa device off` command as opposed to the shortcut.
This commit is contained in:
parent
5d78f000c3
commit
d1b43f5408
@ -99,7 +99,7 @@ async def on(dev: Device, transition: int):
|
|||||||
return await dev.turn_on(transition=transition)
|
return await dev.turn_on(transition=transition)
|
||||||
|
|
||||||
|
|
||||||
@click.command
|
@device.command
|
||||||
@click.option("--transition", type=int, required=False)
|
@click.option("--transition", type=int, required=False)
|
||||||
@pass_dev_or_child
|
@pass_dev_or_child
|
||||||
async def off(dev: Device, transition: int):
|
async def off(dev: Device, transition: int):
|
||||||
|
Loading…
Reference in New Issue
Block a user