mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-16 05:40:41 +08:00
Release 5.0.0
This commit is contained in:
@@ -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]
|
||||
|
||||
|
Reference in New Issue
Block a user