mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-01 16:55:21 +03:00
improved user experience
This commit is contained in:
parent
d99e134976
commit
6471b5b433
@ -90,7 +90,7 @@ def create_mqtt_client(config: FrigateConfig, camera_metrics):
|
|||||||
client.publish(state_topic, payload, retain=True)
|
client.publish(state_topic, payload, retain=True)
|
||||||
|
|
||||||
def on_restart_command(client, userdata, message):
|
def on_restart_command(client, userdata, message):
|
||||||
restart_frigate()
|
restart_frigate(client, mqtt_config.topic_prefix)
|
||||||
|
|
||||||
def on_connect(client, userdata, flags, rc):
|
def on_connect(client, userdata, flags, rc):
|
||||||
threading.current_thread().name = "mqtt"
|
threading.current_thread().name = "mqtt"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user