mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
fix lint errors
This commit is contained in:
@@ -58,8 +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);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -76,7 +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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -321,7 +321,7 @@ class Zigbee {
|
||||
*/
|
||||
report(ep, cluster, attributes) {
|
||||
const cfgArr = [];
|
||||
for(let i=0; i<attributes.length; i++) {
|
||||
for (let i=0; i<attributes.length; i++) {
|
||||
const attribute = attributes[i];
|
||||
const attrId = zclId.attr(cluster, attribute.attr).value;
|
||||
const dataType = zclId.attrType(cluster, attribute.attr).value;
|
||||
|
||||
Reference in New Issue
Block a user