ibp盘问题调整

This commit is contained in:
fan 2020-10-10 18:05:34 +08:00
parent aa00f27ecc
commit 4ada7f987a

View File

@ -198,7 +198,8 @@ class IbpPan {
const deviceList = Object.values(this.ibpDevice);
deviceList.forEach(elem =>{
for (var key in val) {
if (elem.model.mean === key.toUpperCase()) {
const mean = elem.model.mean || '';
if (mean.toUpperCase() === key.toUpperCase()) {
const state = {};
state[key] = val[key];
elem.instance.setStatus(state);