homey-api 3.4.14 → 3.4.15
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.
|
@@ -630,6 +630,11 @@ class HomeyAPIV3 extends HomeyAPI {
|
|
|
630
630
|
Promise.resolve().then(async () => {
|
|
631
631
|
await this.connect();
|
|
632
632
|
await Util.timeout(new Promise((resolve, reject) => {
|
|
633
|
+
if (this.isConnected() !== true) {
|
|
634
|
+
reject(new Error('Not connected after connect. (Reconnect)'));
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
|
|
633
638
|
this.__homeySocket.once('disconnect', (reason) => {
|
|
634
639
|
reject(new Error(reason));
|
|
635
640
|
});
|