fix log formatting

This commit is contained in:
oznu 2018-05-10 21:38:18 +10:00
parent b084ddd04b
commit ff66b8eea8
No known key found for this signature in database
GPG Key ID: 6FF2AA33FF323F1B

View File

@ -86,7 +86,7 @@ class OccupancySensor {
this.log(`${activeDevices.length} monitored device(s) found. Accessory is in mode "none" so NOT triggering occupancy.`)
this.occupancyDetected = Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED
} else {
this.log(`${activeDevices.length} monitored device(s) found. Accessory is in mode "none" so triggering occupancy."`)
this.log(`${activeDevices.length} monitored device(s) found. Accessory is in mode "none" so triggering occupancy.`)
this.occupancyDetected = Characteristic.OccupancyDetected.OCCUPANCY_DETECTED
}
} else if (this.mode === 'all') {
@ -102,7 +102,7 @@ class OccupancySensor {
this.log(`${activeDevices.length} monitored device(s) found. Accessory is in mode "any" so triggering occupancy.`)
this.occupancyDetected = Characteristic.OccupancyDetected.OCCUPANCY_DETECTED
} else {
this.log(`${activeDevices.length} monitored device(s) found. Accessory is in mode "any" so NOT triggering occupancy."`)
this.log(`${activeDevices.length} monitored device(s) found. Accessory is in mode "any" so NOT triggering occupancy.`)
this.occupancyDetected = Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED
}
}