mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
fix lint more errors
This commit is contained in:
parent
b8f689fe6e
commit
f7ceb62eec
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user