Skip to content

Commit 1f32eb5

Browse files
committed
Updated subcommands.on
Fixed docstring and hallucinated color definition.
1 parent d57cb58 commit 1f32eb5

File tree

1 file changed

+4
-8
lines changed
  • src/busylight/subcommands

1 file changed

+4
-8
lines changed

src/busylight/subcommands/on.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""On Command Line Interface.
22
3-
This module implements the 'on' subcommand for turning lights on with a
4-
specified color. It includes special handling for Kuando lights that require
5-
keepalive tasks to maintain their connection.
3+
This module implements the 'on' subcommand for turning lights on with
4+
a specified color. It includes special handling for Kuando lights that
5+
require keepalive tasks to maintain their connection.
66
77
The command supports:
88
- Basic color specification (named colors, hex values, RGB tuples)
@@ -16,6 +16,7 @@
1616
busylight on red
1717
busylight on "#ff0000"
1818
busylight on --color green
19+
1920
"""
2021

2122
from typing import Optional
@@ -48,10 +49,6 @@ def activate_lights(
4849
) -> None:
4950
"""Activate lights with a specified color.
5051
51-
:param ctx: Typer context containing global options and controller
52-
:param color: Color specification (name, hex, or RGB tuple)
53-
:param led: Target LED index for multi-LED devices
54-
5552
This command turns on the selected lights with the specified color.
5653
For devices with multiple LEDs (like Blink1 mk2), use --led to target
5754
specific LEDs: 0=all LEDs, 1=first/top LED, 2=second/bottom LED, etc.
@@ -69,7 +66,6 @@ def activate_lights(
6966
7067
busylight on red
7168
busylight on "#ff0000"
72-
busylight on "rgb(255,0,0)"
7369
7470
Target specific LEDs on multi-LED devices::
7571

0 commit comments

Comments
 (0)