mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-23 06:12:23 +00:00
Zigbee-herdsman 0.8.0
This commit is contained in:
1 parent
90c70e8629
commit
518232e15e
6 files changed
+19
-20
No files matched your search
@@ -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 = [];
|
||||
|
||||
Reference in new issue
Block a user