From ec3fb5c72cd5b40d7341375dfc34e1f1e750ff38 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 23 May 2023 13:17:12 +0200 Subject: [PATCH] fix --- src/preprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preprocess.py b/src/preprocess.py index f88b3c2..586d907 100644 --- a/src/preprocess.py +++ b/src/preprocess.py @@ -100,10 +100,10 @@ def splitTopic(topic): except ValueError: raise InvalidTopicException(topic) r = rest.split('/') - if (len(r) == 1: + if (len(r) == 1): deviceId = 'mains', variableId = r[0] - elif (len(r) == 2: + elif (len(r) == 2): (deviceId, variableid) = r else: raise InvalidTopicException(topic)