From 570cca9e7f0bb3bb11e7b28674f321e4d80ef02e Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Thu, 23 May 2024 13:47:06 +0200 Subject: [PATCH] added support for mgw lan --- custom_components/eltako/esp3_tcp_com.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/eltako/esp3_tcp_com.py b/custom_components/eltako/esp3_tcp_com.py index 3159f7fe..fad2badd 100644 --- a/custom_components/eltako/esp3_tcp_com.py +++ b/custom_components/eltako/esp3_tcp_com.py @@ -107,9 +107,9 @@ def run(self): self._buffer = data self.parse() timeout_count = 0 - timeout_count += 1 + except socket.timeout as e: - pass + timeout_count += 1 if timeout_count > self.__recon_time: timeout_count = 0 self._test_connection()