Skip to content

Commit

Permalink
Fix constant import
Browse files Browse the repository at this point in the history
  • Loading branch information
slackr31337 committed Sep 11, 2022
1 parent 1b4102b commit 5b0f4c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#!/usr/bin/env python3
"""Run the HomeAgent as a service"""

from distutils.debug import DEBUG
import sys
import threading
import traceback
import logging



from service.states import ThreadSafeDict
from service.scheduler import Scheduler
from service.agent_args import parse_args
from service.agent import LOG_PREFIX, HomeAgent
from service.log import LOGGER
from service.const import DEBUG
from config import APP_NAME, Config, load_config

LOG_PREFIX = r"[HomeAgent]"
Expand All @@ -35,7 +34,7 @@ def run_service(config: Config, _sensors=None):
sched.start()

LOGGER.info("%s Stopping", LOG_PREFIX)
#agent.stop()
# agent.stop()

if _running:
_running.clear()
Expand Down
1 change: 1 addition & 0 deletions service/const.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Constants used in module"""

DEBUG = "debug"
UPTIME = "uptime"
RUNTIME = "runtime"
LOCATION = "location"
Expand Down

0 comments on commit 5b0f4c9

Please sign in to comment.