Skip to content

NVR with realtime local object detection for IP cameras

fix string comparison on mqtt error message for Server unavailable (#14675)

Evan Jarrette4a6b2927995
diff --git a/frigate/comms/mqtt.py b/frigate/comms/mqtt.py
index 198ec2176c..5a85a710b6 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"
)