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