mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-22 08:57:20 -06:00
fix string comparison on mqtt error message for Server unavailable (#14675)
This commit is contained in:
parent
d12c7809dd
commit
e4a6b29279
@ -133,7 +133,7 @@ class MqttClient(Communicator): # type: ignore[misc]
|
|||||||
"""Mqtt connection callback."""
|
"""Mqtt connection callback."""
|
||||||
threading.current_thread().name = "mqtt"
|
threading.current_thread().name = "mqtt"
|
||||||
if reason_code != 0:
|
if reason_code != 0:
|
||||||
if reason_code == "Server Unavailable":
|
if reason_code == "Server unavailable":
|
||||||
logger.error(
|
logger.error(
|
||||||
"Unable to connect to MQTT server: MQTT Server unavailable"
|
"Unable to connect to MQTT server: MQTT Server unavailable"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user