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:
Steven B. 2024-09-27 17:36:45 +01:00 committed by GitHub
parent 5d78f000c3
commit d1b43f5408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):