fix lint more errors

This commit is contained in:
jbn 2019-02-23 15:07:44 +01:00 committed by Koen Kanters
parent b8f689fe6e
commit f7ceb62eec

View File

@ -58,10 +58,10 @@ class DeviceReport {
const mappedDevice = zigbeeShepherdConverters.findByZigbeeModel(device.modelId);
if (mappedDevice && mappedDevice.report) {
const endpoint = (typeof(mappedDevice.report)=='number')?
this.zigbee.getEndpoint(device.ieeeAddr, mappedDevice.report):
this.zigbee.getEndpoint(device.ieeeAddr);
this.setupReporting(endpoint);
const endpoint = (typeof(mappedDevice.report)=='number')
? this.zigbee.getEndpoint(device.ieeeAddr, mappedDevice.report)
: this.zigbee.getEndpoint(device.ieeeAddr);
this.setupReporting(endpoint);
}
});
}
@ -78,9 +78,9 @@ class DeviceReport {
if (device && mappedDevice
&& (message.type=='endDeviceAnnce' || message.type=='devIncoming')
&& mappedDevice.report) {
const endpoint = (typeof(mappedDevice.report)=='number')?
this.zigbee.getEndpoint(device.ieeeAddr, mappedDevice.report):
this.zigbee.getEndpoint(device.ieeeAddr);
const endpoint = (typeof(mappedDevice.report)=='number')
? this.zigbee.getEndpoint(device.ieeeAddr, mappedDevice.report)
: this.zigbee.getEndpoint(device.ieeeAddr);
if (endpoint) {
this.setupReporting(endpoint);
}