Skip to content

Commit 0d01945

Browse files
authored
Remove Buffer import (#229)
1 parent 6615713 commit 0d01945

File tree

12 files changed

+1
-18
lines changed

12 files changed

+1
-18
lines changed

src/advertising.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Buffer } from 'buffer';
2-
31
import { Peripheral } from '@abandonware/noble';
42

53
import { WoHand } from './device/wohand.js';

src/device.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Buffer } from 'buffer';
2-
31
import { Characteristic, Peripheral, Service } from '@abandonware/noble';
42
import { ParameterChecker } from './parameter-checker.js';
53
import { Advertising } from './advertising.js';

src/device/woblindtilt.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*
33
* woblindtilt.ts: Switchbot BLE API registration.
44
*/
5-
import { Buffer } from 'buffer';
65

76
import { SwitchbotDevice } from '../device.js';
87

src/device/wobulb.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*
33
* wobulb.ts: Switchbot BLE API registration.
44
*/
5-
import { Buffer } from 'buffer';
65

76
import { SwitchbotDevice } from '../device.js';
87

src/device/wocontact.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*
33
* wocontact.ts: Switchbot BLE API registration.
44
*/
5+
56
import { SwitchbotDevice } from '../device.js';
67

78
export class WoContact extends SwitchbotDevice {

src/device/wocurtain.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*
33
* wocurtain.ts: Switchbot BLE API registration.
44
*/
5-
import { Buffer } from 'buffer';
65

76
import { SwitchbotDevice } from '../device.js';
87

src/device/wohand.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Buffer } from 'buffer';
2-
31
import { SwitchbotDevice } from '../device.js';
42

53
export class WoHand extends SwitchbotDevice {

src/device/wohumi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Buffer } from 'buffer';
2-
31
import { SwitchbotDevice } from '../device.js';
42

53
export class WoHumi extends SwitchbotDevice {

src/device/woplugmini.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Buffer } from 'buffer';
2-
31
import { SwitchbotDevice } from '../device.js';
42

53
/**

src/device/wosmartlock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*
33
* wosmartlock.ts: Switchbot BLE API registration.
44
*/
5-
//import { Buffer } from 'buffer';
65

76
import { SwitchbotDevice } from '../device.js';
87

0 commit comments

Comments
 (0)