From 863644fa56d3fbeb7967394ca91b2d0aa8b62efe Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 23 May 2023 13:36:45 +0200 Subject: [PATCH] casting --- src/preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess.py b/src/preprocess.py index f09e25e..1d4e9d9 100644 --- a/src/preprocess.py +++ b/src/preprocess.py @@ -129,7 +129,7 @@ def mqttOnMessageCallback(client, userdata, message): "application": variable["application"], "variable": variable["variable"], "unit": variable["unit"], - "value": payload + "value": float(payload) } logger.debug(f"{measurement=}")