From ae4f7c5c4b89756bb84338dad3e702e32a34ee85 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Tue, 29 Oct 2024 19:28:59 -0500 Subject: [PATCH] fix string comparison on mqtt error message for Server unavailable --- frigate/comms/mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/comms/mqtt.py b/frigate/comms/mqtt.py index 198ec2176..5a85a710b 100644 --- a/frigate/comms/mqtt.py +++ b/frigate/comms/mqtt.py @@ -133,7 +133,7 @@ class MqttClient(Communicator): # type: ignore[misc] """Mqtt connection callback.""" threading.current_thread().name = "mqtt" if reason_code != 0: - if reason_code == "Server Unavailable": + if reason_code == "Server unavailable": logger.error( "Unable to connect to MQTT server: MQTT Server unavailable" )