Skip to content

Commit f45f4a8

Browse files
committed
Token fix.
1 parent 46c5987 commit f45f4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export class HomebridgePrincessHeaterPlatform implements DynamicPlatformPlugin {
6969

7070
const httpAPIClient = new HttpAPIClient(authorizationHeaderValue);
7171

72-
const auth = await httpAPIClient.login();
72+
const {token} = await httpAPIClient.login();
7373

74-
const wsAPIClient = new WsAPIClient(this.log, authorizationHeaderValue);
74+
const wsAPIClient = new WsAPIClient(this.log, token);
7575

7676
const devices = await httpAPIClient.getDevices();
7777

0 commit comments

Comments
 (0)