Skip to content

Commit c1be70f

Browse files
authored
Revert "Update switchbot.ts" (#225)
1 parent cd0c22b commit c1be70f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/switchbot.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class SwitchBot {
113113
* An array will be passed to the `resolve()`, which includes
114114
* `SwitchbotDevice` objects representing the found devices.
115115
* ---------------------------------------------------------------- */
116-
async discover(params: params = {}) {
116+
discover(params: params = {}) {
117117
const promise = new Promise((resolve, reject) => {
118118
// Check the parameters
119119
const valid = ParameterChecker.check(
@@ -399,7 +399,7 @@ export class SwitchBot {
399399
* - Promise object
400400
* Nothing will be passed to the `resolve()`.
401401
* ---------------------------------------------------------------- */
402-
async startScan(params?: params) {
402+
startScan(params?: params) {
403403
const promise = new Promise<void>((resolve, reject) => {
404404
// Check the parameters
405405
const valid = ParameterChecker.check(
@@ -491,7 +491,7 @@ export class SwitchBot {
491491
* [Return value]
492492
* - none
493493
* ---------------------------------------------------------------- */
494-
async stopScan() {
494+
stopScan() {
495495
this.noble.removeAllListeners('discover');
496496
this.noble.stopScanning();
497497
}
@@ -507,7 +507,7 @@ export class SwitchBot {
507507
* - Promise object
508508
* Nothing will be passed to the `resolve()`.
509509
* ---------------------------------------------------------------- */
510-
async wait(msec: number) {
510+
wait(msec: number) {
511511
return new Promise((resolve, reject) => {
512512
// Check the parameters
513513
const valid = ParameterChecker.check(

0 commit comments

Comments
 (0)