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
+14
View File
@@ -0,0 +1,14 @@
# app/state.py – Zentrale globale Zustände (wird von überall importiert)
current_config = None
current_hub = None
current_module = None
current_device = None
# Optional: Funktionen zum Setzen/Resetten (für Klarheit)
def reset_state():
global current_config, current_hub, current_module, current_device
current_config = None
current_hub = None
current_module = None
current_device = None