📚 Improved blueprint management & database structure (#123) 🔧
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user