Commit e2ac4921 authored by Christian Paul's avatar Christian Paul 🦊
Browse files

Merge branch 'dev2' into 'master'

Use setCachedValueAndNotify to forward new value to listeners

See merge request !3
parents e3fc69bd f62ab85c
Pipeline #277762155 passed with stage
in 1 minute and 6 seconds
......@@ -120,15 +120,15 @@ class Co2MonitorAdapter extends Adapter {
co2Monitor.on('co2', (co2) => {
device.properties.get('carbonDioxideConcentration')
.setCachedValue(co2);
.setCachedValueAndNotify(co2);
});
co2Monitor.on('hum', (hum) => {
device.properties.get('humidity').setCachedValue(hum);
device.properties.get('humidity').setCachedValueAndNotify(hum);
});
co2Monitor.on('temp', (temp) => {
device.properties.get('temperature').setCachedValue(temp);
device.properties.get('temperature').setCachedValueAndNotify(temp);
});
this.handleDeviceAdded(device);
......
This diff is collapsed.
......@@ -29,7 +29,7 @@
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.2.0"
"eslint": "^7.23.0"
},
"files": [
"LICENSE",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment