homey-api 1.5.24 → 1.5.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -489,6 +489,7 @@ class HomeyAPIV2 extends HomeyAPI {
|
|
|
489
489
|
|
|
490
490
|
await this.connect();
|
|
491
491
|
await new Promise((resolve, reject) => {
|
|
492
|
+
this.__ioNamespace.once('disconnect', reject);
|
|
492
493
|
this.__ioNamespace.emit('subscribe', uri, err => {
|
|
493
494
|
if (err) return reject(err);
|
|
494
495
|
return resolve();
|