🎉 Improved core system functionality, refactored error recovery, enhanced hardware integration, optimized timeout force quit manager, improved watchdog manager, and resolved Windows-specific issues. 🖥️📈
This commit is contained in:
@ -27,10 +27,22 @@ hardware_logger = get_logger("hardware_integration")
|
||||
# ===== TAPO SMART PLUG CONTROLLER =====
|
||||
|
||||
class TapoController:
|
||||
"""TP-Link Tapo Smart Plug Controller"""
|
||||
"""TP-Link Tapo Smart Plug Controller - Konsolidiert aus tapo_controller.py"""
|
||||
|
||||
def __init__(self):
|
||||
self.default_username = "till.tomczak@mercedes-benz.com"
|
||||
"""Initialisiere den Tapo Controller"""
|
||||
from utils.settings import TAPO_USERNAME, TAPO_PASSWORD, DEFAULT_TAPO_IPS, TAPO_TIMEOUT, TAPO_RETRY_COUNT
|
||||
|
||||
self.username = TAPO_USERNAME
|
||||
self.password = TAPO_PASSWORD
|
||||
self.timeout = TAPO_TIMEOUT
|
||||
self.retry_count = TAPO_RETRY_COUNT
|
||||
self.auto_discovered = False
|
||||
|
||||
if not TAPO_AVAILABLE:
|
||||
hardware_logger.error("❌ PyP100-modul nicht installiert - tapo-funktionalität eingeschränkt")
|
||||
else:
|
||||
hardware_logger.info("✅ tapo controller initialisiert") self.default_username = "till.tomczak@mercedes-benz.com"
|
||||
self.default_password = "744563017196A"
|
||||
hardware_logger.info("🔌 Tapo Controller initialisiert")
|
||||
|
||||
|
Reference in New Issue
Block a user