Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
import mqtt only if enabled by env
  • Loading branch information
kaffetorsk authored Sep 26, 2023
1 parent fe762cc commit 0c20ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import logging
import signal
from camera import Camera
import mqtt

# Read config from ENV
ARLO_USER = config('ARLO_USER')
Expand Down Expand Up @@ -43,6 +42,7 @@ async def main():

# Initialize mqtt service
if MQTT_BROKER:
import mqtt
asyncio.create_task(mqtt.mqtt_client(cameras))

# Graceful shutdown
Expand Down

0 comments on commit 0c20ad4

Please sign in to comment.