mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Remove error redundant check
This commit is contained in:
parent
874e9085a7
commit
2c2f0044b9
@ -34,8 +34,6 @@ def main():
|
||||
print ("MQTT Not authorized")
|
||||
else:
|
||||
print ("Unable to connect to MQTT: Connection refused. Error code: " + str(rc))
|
||||
elif rc == 0:
|
||||
print ("Connection to MQTT established.")
|
||||
# publish a message to signal that the service is running
|
||||
client.publish(MQTT_TOPIC_PREFIX+'/available', 'online', retain=True)
|
||||
client = mqtt.Client()
|
||||
|
Loading…
Reference in New Issue
Block a user