We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cb33da commit d6dd854Copy full SHA for d6dd854
1 file changed
dingz/cli.py
@@ -85,5 +85,16 @@ async def set_off(ip):
85
await dingz.turn_off()
86
87
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
99
if __name__ == "__main__":
100
main()
0 commit comments