📚 Improved blueprint management & database structure (#123) 🔧

This commit is contained in:
2025-06-16 12:49:58 +02:00
parent 6ee04b1d64
commit 35e3297dcd
8 changed files with 78 additions and 5 deletions

View File

@@ -403,7 +403,7 @@ class TapoController:
return result
def ping_address(self, ip: str, timeout: int = 3) -> bool:
def ping_address(self, ip: str, timeout: int = 5) -> bool:
"""
Führt einen Konnektivitätstest zu einer IP-Adresse durch
Verwendet TCP-Verbindung statt Ping für bessere Kompatibilität
@@ -461,8 +461,8 @@ class TapoController:
try:
tapo_logger.info(f"🔍 teste ip {i+1}/{len(self.default_ips)}: {ip}")
# Schneller Ping-Test
if self.ping_address(ip, timeout=2):
# Ping-Test mit 5 Sekunden Timeout
if self.ping_address(ip, timeout=5):
tapo_logger.info(f"✅ steckdose mit ip {ip} ist erreichbar")
# Tapo-Verbindung testen