forked from Github/frigate
sort imports
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import logging
|
||||
import paho.mqtt.client as mqtt
|
||||
import threading
|
||||
|
||||
import paho.mqtt.client as mqtt
|
||||
|
||||
from frigate.config import MqttConfig
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -28,4 +29,4 @@ def create_mqtt_client(config: MqttConfig):
|
||||
client.username_pw_set(config.user, password=config.password)
|
||||
client.connect(config.host, config.port, 60)
|
||||
client.loop_start()
|
||||
return client
|
||||
return client
|
||||
|
||||
Reference in New Issue
Block a user