fixxed imports, added state.py

This commit is contained in:
2026-02-16 14:49:18 +01:00
parent 6265683cce
commit f3679cbd29
6 changed files with 26 additions and 3 deletions
+2
View File
@@ -30,6 +30,8 @@ def init_bluetooth():
logger.info("Bluetooth-Komponenten initialisiert (Advertiser + Tracer)")
# Hier ggf. weitere Initialisierung (z. B. hci0 prüfen)
from app.state import current_device, current_module, current_hub
def connection_monitor():
"""
Background-Thread: Prüft alle 5 Sekunden, ob der Hub noch antwortet.