upsmon refactoring

This commit is contained in:
2025-05-30 19:00:07 +02:00
parent 6cac8b8c90
commit 27170ef12a
3 changed files with 127 additions and 16 deletions

View File

@@ -12,10 +12,10 @@ from influxdb_client.client.write_api import ASYNCHRONOUS, SYNCHRONOUS
# Get environment variables
env = dict(os.environ)
LOGGER = None
LOGGER: logging.Logger
class Runner:
running: property = True
running: bool = True
def __init__(self):
signal.signal(signal.SIGINT, self.stop)
signal.signal(signal.SIGTERM, self.stop)