Skip to content

Commit

Permalink
fixup! Add Aqara TVOC Sensor Support with history
Browse files Browse the repository at this point in the history
  • Loading branch information
sieren committed Sep 11, 2021
1 parent 91241d1 commit 4a0c6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/HueSensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2045,8 +2045,8 @@ HueSensor.prototype.addEntry = function (changed) {
break
case 'room2':
{
var key = this.type.key === 'airqualityppb' ? 'voc' : this.type.key
key = this.type.key === 'temperature' ? 'temp' : key
let key = this.type.key === 'airqualityppb' ? 'voc' :
(this.type.key === 'temperature' ? 'temp' : key)
this.history.entry[key] = this.hk[this.type.key]
if (changed || this.type.key !== this.history.resource.type.key) {
return
Expand Down

0 comments on commit 4a0c6b2

Please sign in to comment.