From 31cd2a55418d7ea82f6f67b4bc8b74870676d08a Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Mon, 12 Jul 2021 16:58:35 +0200 Subject: [PATCH] improved user experience --- frigate/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/util.py b/frigate/util.py index e325a2710..fab37d14b 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -519,14 +519,14 @@ def clipped(obj, frame_shape): return False -def restart_frigate(mqtt_client, topic_prefix, from_ui = 0): +def restart_frigate(mqtt_client, topic_prefix): def on_publish(client,userdata,result): time.sleep(0.67) os.kill(os.getpid(), signal.SIGTERM) mqtt_client.on_publish = on_publish - mqtt_client.publish(f"{topic_prefix}/restarted", int(from_ui)) + mqtt_client.publish(f"{topic_prefix}/restarted", 1) class EventsPerSecond: