Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
ec3fb5c72c
|
@ -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)
|
||||
|
Reference in New Issue
Block a user