From e4a6b292799569b8633da44c1469b513a311c83a Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Wed, 30 Oct 2024 04:05:58 -0700 Subject: [PATCH] fix string comparison on mqtt error message for Server unavailable (#14675) --- 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" )