Release 5.0.0

This commit is contained in:
tsightler
2022-02-22 09:35:09 -05:00
parent 4ff61f53a7
commit a4fe37b55b

View File

@@ -106,7 +106,7 @@ class Mqtt {
} else {
// Parse topic to get location/device ID
const ringTopicLevels = (this.config.ring_topic).split('/').length
splitTopic = topic.split('/')
const splitTopic = topic.split('/')
const locationId = splitTopic[ringTopicLevels]
const deviceId = splitTopic[ringTopicLevels + 2]