@switchbot/homebridge-switchbot 2.6.3-beta.0 → 2.6.3-beta.2

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.
Files changed (46) hide show
  1. package/dist/device/blindtilt.js +2 -2
  2. package/dist/device/blindtilt.js.map +1 -1
  3. package/dist/device/bot.js +2 -2
  4. package/dist/device/bot.js.map +1 -1
  5. package/dist/device/ceilinglight.js +2 -2
  6. package/dist/device/ceilinglight.js.map +1 -1
  7. package/dist/device/colorbulb.js +2 -2
  8. package/dist/device/colorbulb.js.map +1 -1
  9. package/dist/device/contact.js +2 -2
  10. package/dist/device/contact.js.map +1 -1
  11. package/dist/device/curtain.js +2 -2
  12. package/dist/device/curtain.js.map +1 -1
  13. package/dist/device/humidifier.js +2 -2
  14. package/dist/device/humidifier.js.map +1 -1
  15. package/dist/device/iosensor.js +2 -2
  16. package/dist/device/iosensor.js.map +1 -1
  17. package/dist/device/lightstrip.js +2 -2
  18. package/dist/device/lightstrip.js.map +1 -1
  19. package/dist/device/lock.js +2 -2
  20. package/dist/device/lock.js.map +1 -1
  21. package/dist/device/meter.js +2 -2
  22. package/dist/device/meter.js.map +1 -1
  23. package/dist/device/meterplus.js +2 -2
  24. package/dist/device/meterplus.js.map +1 -1
  25. package/dist/device/motion.js +2 -2
  26. package/dist/device/motion.js.map +1 -1
  27. package/dist/device/plug.js +2 -2
  28. package/dist/device/plug.js.map +1 -1
  29. package/dist/device/robotvacuumcleaner.js +2 -2
  30. package/dist/device/robotvacuumcleaner.js.map +1 -1
  31. package/package.json +6 -6
  32. package/src/device/blindtilt.ts +2 -2
  33. package/src/device/bot.ts +2 -2
  34. package/src/device/ceilinglight.ts +2 -2
  35. package/src/device/colorbulb.ts +2 -2
  36. package/src/device/contact.ts +2 -2
  37. package/src/device/curtain.ts +2 -2
  38. package/src/device/humidifier.ts +2 -2
  39. package/src/device/iosensor.ts +2 -2
  40. package/src/device/lightstrip.ts +2 -2
  41. package/src/device/lock.ts +2 -2
  42. package/src/device/meter.ts +2 -2
  43. package/src/device/meterplus.ts +2 -2
  44. package/src/device/motion.ts +2 -2
  45. package/src/device/plug.ts +2 -2
  46. package/src/device/robotvacuumcleaner.ts +2 -2
@@ -872,7 +872,7 @@ export class BlindTilt {
872
872
  }
873
873
 
874
874
  async stopScanning(switchbot: any) {
875
- switchbot.stopScan();
875
+ await switchbot.stopScan();
876
876
  if (this.connected) {
877
877
  await this.BLEparseStatus();
878
878
  await this.updateHomeKitCharacteristics();
@@ -894,7 +894,7 @@ export class BlindTilt {
894
894
  };
895
895
  await sleep(10000);
896
896
  // Stop to monitor
897
- switchbot.stopScan();
897
+ await switchbot.stopScan();
898
898
  })();
899
899
  }
900
900
  }
package/src/device/bot.ts CHANGED
@@ -1073,7 +1073,7 @@ export class Bot {
1073
1073
  }
1074
1074
 
1075
1075
  async stopScanning(switchbot: any) {
1076
- switchbot.stopScan();
1076
+ await switchbot.stopScan();
1077
1077
  if (this.connected) {
1078
1078
  await this.BLEparseStatus();
1079
1079
  await this.updateHomeKitCharacteristics();
@@ -1095,7 +1095,7 @@ export class Bot {
1095
1095
  };
1096
1096
  await sleep(10000);
1097
1097
  // Stop to monitor
1098
- switchbot.stopScan();
1098
+ await switchbot.stopScan();
1099
1099
  })();
1100
1100
  }
1101
1101
  }
@@ -782,7 +782,7 @@ export class CeilingLight {
782
782
  }
783
783
 
784
784
  async stopScanning(switchbot: any) {
785
- switchbot.stopScan();
785
+ await switchbot.stopScan();
786
786
  if (this.connected) {
787
787
  await this.BLEparseStatus();
788
788
  await this.updateHomeKitCharacteristics();
@@ -805,7 +805,7 @@ export class CeilingLight {
805
805
  };
806
806
  await sleep(10000);
807
807
  // Stop to monitor
808
- switchbot.stopScan();
808
+ await switchbot.stopScan();
809
809
  })();
810
810
  }
811
811
  }
@@ -936,7 +936,7 @@ export class ColorBulb {
936
936
  }
937
937
 
938
938
  async stopScanning(switchbot: any) {
939
- switchbot.stopScan();
939
+ await switchbot.stopScan();
940
940
  if (this.connected) {
941
941
  await this.BLEparseStatus();
942
942
  await this.updateHomeKitCharacteristics();
@@ -959,7 +959,7 @@ export class ColorBulb {
959
959
  };
960
960
  await sleep(10000);
961
961
  // Stop to monitor
962
- switchbot.stopScan();
962
+ await switchbot.stopScan();
963
963
  })();
964
964
  }
965
965
  }
@@ -440,7 +440,7 @@ export class Contact {
440
440
  }
441
441
 
442
442
  async stopScanning(switchbot: any) {
443
- switchbot.stopScan();
443
+ await switchbot.stopScan();
444
444
  if (this.connected) {
445
445
  await this.BLEparseStatus();
446
446
  await this.updateHomeKitCharacteristics();
@@ -462,7 +462,7 @@ export class Contact {
462
462
  };
463
463
  await sleep(10000);
464
464
  // Stop to monitor
465
- switchbot.stopScan();
465
+ await switchbot.stopScan();
466
466
  })();
467
467
  }
468
468
  }
@@ -783,7 +783,7 @@ export class Curtain {
783
783
  }
784
784
 
785
785
  async stopScanning(switchbot: any) {
786
- switchbot.stopScan();
786
+ await switchbot.stopScan();
787
787
  if (this.connected) {
788
788
  await this.BLEparseStatus();
789
789
  await this.updateHomeKitCharacteristics();
@@ -805,7 +805,7 @@ export class Curtain {
805
805
  };
806
806
  await sleep(10000);
807
807
  // Stop to monitor
808
- switchbot.stopScan();
808
+ await switchbot.stopScan();
809
809
  })();
810
810
  }
811
811
  }
@@ -662,7 +662,7 @@ export class Humidifier {
662
662
  }
663
663
 
664
664
  async stopScanning(switchbot: any) {
665
- switchbot.stopScan();
665
+ await switchbot.stopScan();
666
666
  if (this.connected) {
667
667
  await this.BLEparseStatus();
668
668
  await this.updateHomeKitCharacteristics();
@@ -684,7 +684,7 @@ export class Humidifier {
684
684
  };
685
685
  await sleep(10000);
686
686
  // Stop to monitor
687
- switchbot.stopScan();
687
+ await switchbot.stopScan();
688
688
  })();
689
689
  }
690
690
  }
@@ -465,7 +465,7 @@ export class IOSensor {
465
465
  }
466
466
 
467
467
  async stopScanning(switchbot: any) {
468
- switchbot.stopScan();
468
+ await switchbot.stopScan();
469
469
  if (this.connected) {
470
470
  await this.BLEparseStatus();
471
471
  await this.updateHomeKitCharacteristics();
@@ -487,7 +487,7 @@ export class IOSensor {
487
487
  };
488
488
  await sleep(10000);
489
489
  // Stop to monitor
490
- switchbot.stopScan();
490
+ await switchbot.stopScan();
491
491
  })();
492
492
  }
493
493
  }
@@ -793,7 +793,7 @@ export class StripLight {
793
793
  }
794
794
 
795
795
  async stopScanning(switchbot: any) {
796
- switchbot.stopScan();
796
+ await switchbot.stopScan();
797
797
  if (this.connected) {
798
798
  await this.BLEparseStatus();
799
799
  await this.updateHomeKitCharacteristics();
@@ -816,7 +816,7 @@ export class StripLight {
816
816
  };
817
817
  await sleep(10000);
818
818
  // Stop to monitor
819
- switchbot.stopScan();
819
+ await switchbot.stopScan();
820
820
  })();
821
821
  }
822
822
  }
@@ -454,7 +454,7 @@ export class Lock {
454
454
  }
455
455
 
456
456
  async stopScanning(switchbot: any) {
457
- switchbot.stopScan();
457
+ await switchbot.stopScan();
458
458
  if (this.connected) {
459
459
  await this.BLEparseStatus();
460
460
  await this.updateHomeKitCharacteristics();
@@ -476,7 +476,7 @@ export class Lock {
476
476
  };
477
477
  await sleep(10000);
478
478
  // Stop to monitor
479
- switchbot.stopScan();
479
+ await switchbot.stopScan();
480
480
  })();
481
481
  }
482
482
  }
@@ -465,7 +465,7 @@ export class Meter {
465
465
  }
466
466
 
467
467
  async stopScanning(switchbot: any) {
468
- switchbot.stopScan();
468
+ await switchbot.stopScan();
469
469
  if (this.connected) {
470
470
  await this.BLEparseStatus();
471
471
  await this.updateHomeKitCharacteristics();
@@ -487,7 +487,7 @@ export class Meter {
487
487
  };
488
488
  await sleep(10000);
489
489
  // Stop to monitor
490
- switchbot.stopScan();
490
+ await switchbot.stopScan();
491
491
  })();
492
492
  }
493
493
  }
@@ -467,7 +467,7 @@ export class MeterPlus {
467
467
  }
468
468
 
469
469
  async stopScanning(switchbot: any) {
470
- switchbot.stopScan();
470
+ await switchbot.stopScan();
471
471
  if (this.connected) {
472
472
  await this.BLEparseStatus();
473
473
  await this.updateHomeKitCharacteristics();
@@ -489,7 +489,7 @@ export class MeterPlus {
489
489
  };
490
490
  await sleep(10000);
491
491
  // Stop to monitor
492
- switchbot.stopScan();
492
+ await switchbot.stopScan();
493
493
  })();
494
494
  }
495
495
  }
@@ -388,7 +388,7 @@ export class Motion {
388
388
  }
389
389
 
390
390
  async stopScanning(switchbot: any) {
391
- switchbot.stopScan();
391
+ await switchbot.stopScan();
392
392
  if (this.connected) {
393
393
  await this.BLEparseStatus();
394
394
  await this.updateHomeKitCharacteristics();
@@ -410,7 +410,7 @@ export class Motion {
410
410
  };
411
411
  await sleep(10000);
412
412
  // Stop to monitor
413
- switchbot.stopScan();
413
+ await switchbot.stopScan();
414
414
  })();
415
415
  }
416
416
  }
@@ -409,7 +409,7 @@ export class Plug {
409
409
  }
410
410
 
411
411
  async stopScanning(switchbot: any) {
412
- switchbot.stopScan();
412
+ await switchbot.stopScan();
413
413
  if (this.connected) {
414
414
  await this.BLEparseStatus();
415
415
  await this.updateHomeKitCharacteristics();
@@ -439,7 +439,7 @@ export class Plug {
439
439
  };
440
440
  await sleep(10000);
441
441
  // Stop to monitor
442
- switchbot.stopScan();
442
+ await switchbot.stopScan();
443
443
  })();
444
444
  }
445
445
  }
@@ -523,7 +523,7 @@ export class RobotVacuumCleaner {
523
523
  }
524
524
 
525
525
  async stopScanning(switchbot: any) {
526
- switchbot.stopScan();
526
+ await switchbot.stopScan();
527
527
  if (this.connected) {
528
528
  await this.BLEparseStatus();
529
529
  await this.updateHomeKitCharacteristics();
@@ -553,7 +553,7 @@ export class RobotVacuumCleaner {
553
553
  };
554
554
  await sleep(10000);
555
555
  // Stop to monitor
556
- switchbot.stopScan();
556
+ await switchbot.stopScan();
557
557
  })();
558
558
  }
559
559
  }