Minor tweaks

This commit is contained in:
tsightler
2022-09-26 20:44:58 -04:00
parent c5757d89b4
commit c00bcf5d2f
2 changed files with 7 additions and 7 deletions

View File

@@ -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)