From c02c770776b67925d4e6fd898d5141f02e6139ff Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 5 Aug 2024 10:11:27 +0200 Subject: [PATCH] decrease modbus timeout --- sdm630_mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdm630_mqtt.py b/sdm630_mqtt.py index c8ff91c..0bd413c 100644 --- a/sdm630_mqtt.py +++ b/sdm630_mqtt.py @@ -21,7 +21,7 @@ class SDM630_MQTT: port=config["modbus"]["port"], unit_id=config["modbus"]["unit_id"], ) - self.modbus.timeout = 10 + self.modbus.timeout = 1 self.mqtt = mqtt.Client() self.mqtt_host = config["mqtt"]["host"]