It appears that you've made several changes to your project's directory structure and files. Here's a summary of the actions:

This commit is contained in:
2025-06-19 09:50:15 +02:00
parent 44a80b7534
commit 52ff6b453e
122 changed files with 1337 additions and 826 deletions

View File

@ -1082,18 +1082,19 @@ def api_get_printers():
def api_get_printer_status():
"""API-Endpunkt für Drucker-Status mit verbessertem Status-Management"""
try:
# Verwende den neuen TapoStatusManager
from utils.tapo_status_manager import tapo_status_manager
# Verwende den konsolidierten Hardware Integration Monitor
from utils.hardware_integration import printer_monitor
# Status für alle Drucker abrufen
status_list = tapo_status_manager.get_all_printer_status()
status_data = printer_monitor.get_live_printer_status()
status_list = list(status_data.values())
# Erweitere Status mit UI-freundlichen Informationen
for status in status_list:
# Status-Display-Informationen hinzufügen
plug_status = status.get("plug_status", "unknown")
if plug_status in tapo_status_manager.STATUS_DISPLAY:
status["status_display"] = tapo_status_manager.STATUS_DISPLAY[plug_status]
if plug_status in printer_monitor.STATUS_DISPLAY:
status["status_display"] = printer_monitor.STATUS_DISPLAY[plug_status]
else:
status["status_display"] = {
"text": "Unbekannt",

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More