From d184d59ab2a0e6804975aa4f759b1a61d671c0f4 Mon Sep 17 00:00:00 2001 From: lolouk44 Date: Thu, 21 May 2020 16:46:35 +0100 Subject: [PATCH] time_interval fix --- src/Xiaomi_Scale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xiaomi_Scale.py b/src/Xiaomi_Scale.py index 55d12a7..5ff8489 100644 --- a/src/Xiaomi_Scale.py +++ b/src/Xiaomi_Scale.py @@ -36,7 +36,7 @@ MQTT_PORT = int(os.getenv('MQTT_PORT', 1883)) MQTT_TIMEOUT = int(os.getenv('MQTT_TIMEOUT', 60)) MQTT_PREFIX = os.getenv('MQTT_PREFIX', 'miscale') -TIME_INTERVAL = os.getenv('TIME_INTERVAL, '30') +TIME_INTERVAL = int(os.getenv('TIME_INTERVAL, '30')) OLD_MEASURE = '' # User Variables...