Fix power_off toggling the power state instead of only powering off
This commit is contained in:
parent
f92e4ed16e
commit
f7794d4bea
2 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ def power_on():
|
|||
@app.route("/power_off")
|
||||
def power_off():
|
||||
if power_state.is_set():
|
||||
power_state.clear()
|
||||
send(pi, ["power"])
|
||||
|
||||
return "", 204
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "pi-soulra"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
description = ""
|
||||
authors = ["Magnus Walbeck <mw@mwalbeck.org>"]
|
||||
readme = "README.md"
|
||||
|
|
Loading…
Add table
Reference in a new issue