Skip to content

Commit

Permalink
Update platform.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Aug 1, 2024
1 parent e53561a commit 18849a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import type { IncomingMessage, Server, ServerResponse } from 'http';
* For Testing Locally:
* import { SwitchBotModel } from '/Users/Shared/GitHub/OpenWonderLabs/node-switchbot/dist/index.js';
*/
import type { SwitchBot} from 'node-switchbot';
import { SwitchBotModel } from 'node-switchbot';

/**
Expand Down Expand Up @@ -2692,7 +2691,7 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
}

// BLE Connection
async connectBLE(accessory: PlatformAccessory, device: device & devicesConfig): Promise<SwitchBot | boolean> {
async connectBLE(accessory: PlatformAccessory, device: device & devicesConfig): Promise<any> {
try {
const { SwitchBot } = await import('node-switchbot');
const switchbot = new SwitchBot();
Expand Down

0 comments on commit 18849a7

Please sign in to comment.