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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.24",
3
+ "version": "1.5.25",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "types": "assets/types/homey-api.d.ts",