mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-26 18:21:10 +08:00
Minor tweaks
This commit is contained in:
@@ -45,7 +45,7 @@ class RingMqtt {
|
||||
} else {
|
||||
debug('MQTT connection established, processing Ring locations...')
|
||||
await this.initRingData()
|
||||
this.processLocations()
|
||||
this.publishLocations()
|
||||
}
|
||||
} else {
|
||||
this.mqttConnected = false
|
||||
@@ -103,8 +103,8 @@ class RingMqtt {
|
||||
return this.client
|
||||
}
|
||||
|
||||
// Loop through each location and call publishLocation for supported/connected devices
|
||||
async processLocations() {
|
||||
// Loop through each location and publish supported devices
|
||||
async publishLocations() {
|
||||
// For each location get existing alarm & camera devices
|
||||
this.locations.forEach(async location => {
|
||||
const devices = await this.devices.filter(d => d.locationId == location.locationId)
|
||||
|
||||
Reference in New Issue
Block a user