mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +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:
@@ -99,7 +99,7 @@ async def on(dev: Device, transition: int):
|
||||
return await dev.turn_on(transition=transition)
|
||||
|
||||
|
||||
@click.command
|
||||
@device.command
|
||||
@click.option("--transition", type=int, required=False)
|
||||
@pass_dev_or_child
|
||||
async def off(dev: Device, transition: int):
|
||||
|
Reference in New Issue
Block a user