Add logging to MQTT client and main application; create systemd service file

This commit is contained in:
Edgar P. Burkhart 2025-03-08 23:50:43 +01:00
parent fa8bb1d8a9
commit d827788da1
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 21 additions and 2 deletions

View file

@ -1,9 +1,12 @@
import logging
import tomllib
from hasspy.mqtt import HassClient
def main() -> None:
logging.basicConfig(level=logging.INFO)
with open("config.toml", "rb") as file:
config = tomllib.load(file)