Skip to content

Commit d6dd854

Browse files
committed
Add support getting the status of the front LED
1 parent 5cb33da commit d6dd854

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

dingz/cli.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,16 @@ async def set_off(ip):
8585
await dingz.turn_off()
8686

8787

88+
@front_led.command("status")
89+
@coro
90+
@click.option(
91+
"--ip", prompt="IP address of the device", help="IP address of the device."
92+
)
93+
async def get_status(ip):
94+
"""Get the status of the front LED off."""
95+
async with Dingz(ip) as dingz:
96+
click.echo(await dingz.enabled())
97+
98+
8899
if __name__ == "__main__":
89100
main()

0 commit comments

Comments
 (0)