Skip to content

Commit

Permalink
fix not retriving sensor uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jun 13, 2023
1 parent c165f68 commit fd81046
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfigurie
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->

### __WORK IN PROGRESS__
* (foxriver76) fix sensor converting (closes #415)

### 3.9.1 (2023-06-13)
* (foxriver76) implemented more commands of the Push API (mainly buttons)

Expand Down
4 changes: 2 additions & 2 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,9 @@ class Hue extends utils.Adapter {
// @ts-expect-error lib export is wrong
this.pushClient = new HuePushClient({ ip: this.config.bridge, user: this.config.user });

this.pushClient.addEventListener('open', () => {
this.pushClient.addEventListener('open', async () => {
this.log.info('Push connection established');
this.UUIDs = this.pushClient.uuids();
this.UUIDs = await this.pushClient.uuids();
});

this.pushClient.addEventListener('close', () => {
Expand Down

0 comments on commit fd81046

Please sign in to comment.