summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/home/soundsensor/server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/home/soundsensor/server.py b/src/home/soundsensor/server.py
index db01637..a627390 100644
--- a/src/home/soundsensor/server.py
+++ b/src/home/soundsensor/server.py
@@ -58,6 +58,7 @@ class Database(SQLiteBase):
def set_guard_enabled(self, enabled: bool) -> None:
cur = self.cursor()
cur.execute("UPDATE status SET guard_enabled=?", (int(enabled),))
+ self.commit()
class SoundSensorServer: