Skip to content

Commit d1b43f5

Browse files
authored
Fix cli command for device off (python-kasa#1121)
Was previously missed when using the full `kasa device off` command as opposed to the shortcut.
1 parent 5d78f00 commit d1b43f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kasa/cli/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def on(dev: Device, transition: int):
9999
return await dev.turn_on(transition=transition)
100100

101101

102-
@click.command
102+
@device.command
103103
@click.option("--transition", type=int, required=False)
104104
@pass_dev_or_child
105105
async def off(dev: Device, transition: int):

0 commit comments

Comments
 (0)