fix issue tracking devices on guest networks

This commit is contained in:
oznu 2018-02-09 20:07:11 +11:00
parent 3eea8249fb
commit 925a3b525e
No known key found for this signature in database
GPG Key ID: 6FF2AA33FF323F1B

View File

@ -33,13 +33,13 @@ class OccupancySensor {
})
this.unifi.on('connected', (data) => {
if (this.watch.includes(data.user)) {
if (this.watch.includes(data.user || data.guest)) {
return this.checkOccupancy()
}
})
this.unifi.on('disconnected', (data) => {
if (this.watch.includes(data.user)) {
if (this.watch.includes(data.user || data.guest)) {
return this.checkOccupancy()
}
})