From 17a53b9f9d7d2b62c06d15c35b0dff22bf46577f Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 14 Oct 2020 09:23:37 +0100 Subject: [PATCH] carlo_gavazzi: set minimum timeout to 500 ms The network stack in the meter can lock up if too small a timeout is used. Make sure this remains unlikely. --- carlo_gavazzi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/carlo_gavazzi.py b/carlo_gavazzi.py index 499fae3..57d96b8 100644 --- a/carlo_gavazzi.py +++ b/carlo_gavazzi.py @@ -41,6 +41,7 @@ def decode(self, values): class EM24_Meter(device.EnergyMeter): productid = 0xb017 productname = 'Carlo Gavazzi EM24 Ethernet Energy Meter' + min_timeout = 0.5 def __init__(self, *args): super(EM24_Meter, self).__init__(*args)