mirror of
https://github.com/oznu/homebridge-unifi-occupancy-sensor.git
synced 2025-01-22 11:18:56 +00:00
fix log formatting
This commit is contained in:
parent
b084ddd04b
commit
ff66b8eea8
4
index.js
4
index.js
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user