Zigbee-herdsman 0.8.0

This commit is contained in:
Koen Kanters committed 2019-10-01 20:22:47 +02:00
1 parent 90c70e8629
commit 518232e15e
6 files changed
+19 -20

No files matched your search

+4 -5
View File
@@ -8,7 +8,6 @@ class Group {
this.meta = {};
this.members = [];
this.hasMember = (endpoint) => this.members.includes(endpoint);
this.getMembers = () => this.members;
}
}
@@ -46,6 +45,10 @@ class Endpoint {
if (!group.members.includes(this)) group.members.push(this);
}
this.getDevice = () => {
return Object.values(devices).find(d => d.ieeeAddr === deviceIeeeAddress);
}
this.removeFromGroup = (group) => {
const index = group.members.indexOf(this);
if (index != -1) {
@@ -81,10 +84,6 @@ class Device {
getEndpoint(ID) {
return this.endpoints.find((e) => e.ID === ID);
}
getEndpoints() {
return this.endpoints;
}
}
const returnDevices = [];