Handle zigbee commands sequentially (and refactor it). #529

This commit is contained in:
Koenkk committed 2018-10-23 20:39:48 +02:00
1 parent e54de4bea7
commit ddb83cc6e4
7 files changed
+184 -120

No files matched your search

+2 -2
View File
@@ -177,8 +177,8 @@ class Zigbee {
return this.shepherd.list();
}
getDevice(deviceID) {
return this.getDevices().find((d) => d.ieeeAddr === deviceID);
getDevice(ieeeAddr) {
return this.getDevices().find((d) => d.ieeeAddr === ieeeAddr);
}
getCoordinator() {