Fix power_off toggling the power state instead of only powering off

This commit is contained in:
Magnus Walbeck 2023-01-31 15:31:17 +01:00
parent f92e4ed16e
commit f7794d4bea
Signed by: mwalbeck
GPG key ID: CCB78CFF3F950769
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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"