diff --git a/run.py b/run.py index 4d720fd..cf69bc4 100755 --- a/run.py +++ b/run.py @@ -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]" @@ -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() diff --git a/service/const.py b/service/const.py index 2c7229d..bc55017 100644 --- a/service/const.py +++ b/service/const.py @@ -1,5 +1,6 @@ """Constants used in module""" +DEBUG = "debug" UPTIME = "uptime" RUNTIME = "runtime" LOCATION = "location"