From d1b43f5408e9d817e63694cf08570967604e3717 Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:36:45 +0100 Subject: [PATCH] Fix cli command for device off (#1121) Was previously missed when using the full `kasa device off` command as opposed to the shortcut. --- kasa/cli/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasa/cli/device.py b/kasa/cli/device.py index 400bc473..f513a5e2 100644 --- a/kasa/cli/device.py +++ b/kasa/cli/device.py @@ -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):