Skip to content

Commit

Permalink
Move tb_device_mqtt import into main()
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjaigner committed Jul 16, 2024
1 parent 0c4e379 commit 51cad26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/threads/thingsboard_thread.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .abstract_thread import AbstractThread
from packages.core import types, utils, interfaces
from tb_device_mqtt import TBDeviceMqttClient # type: ignore
import threading
import time
from typing import Dict, Union, Optional
Expand Down Expand Up @@ -35,6 +34,8 @@ def main(headless: bool = False) -> None:
config = types.Config.load()
assert config.thingsboard is not None

from tb_device_mqtt import TBDeviceMqttClient # type: ignore

# initialize MQTT client
client = TBDeviceMqttClient(
config.thingsboard.host, username=config.thingsboard.access_token
Expand Down

0 comments on commit 51cad26

Please sign in to comment.