1 Commits
0.0.2 ... 0.0.3

Author SHA1 Message Date
ec3fb5c72c fix 2023-05-23 13:17:12 +02:00

View File

@ -100,10 +100,10 @@ def splitTopic(topic):
except ValueError: except ValueError:
raise InvalidTopicException(topic) raise InvalidTopicException(topic)
r = rest.split('/') r = rest.split('/')
if (len(r) == 1: if (len(r) == 1):
deviceId = 'mains', deviceId = 'mains',
variableId = r[0] variableId = r[0]
elif (len(r) == 2: elif (len(r) == 2):
(deviceId, variableid) = r (deviceId, variableid) = r
else: else:
raise InvalidTopicException(topic) raise InvalidTopicException(topic)