Skip to content

Commit

Permalink
Update api reference and fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjaigner committed Jul 15, 2024
1 parent 3a4c0ff commit 777d437
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/threads/thingsboard_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,8 @@ def main(headless: bool = False) -> None:
logger.exception(e)
logger.info("Failed to publish last telemetry data.")

time.sleep(config.thingsboard.seconds_per_publish_interval or 60)
if config.thingsboard is not None:
if config.thingsboard.seconds_per_publish_interval is None:
time.sleep(60)
else:
time.sleep(config.thingsboard.seconds_per_publish_interval)

0 comments on commit 777d437

Please sign in to comment.