Skip to content

Commit

Permalink
fix: bind onUnload
Browse files Browse the repository at this point in the history
  • Loading branch information
theknut committed Apr 12, 2024
1 parent d9a0e2d commit acb311e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Expand Up @@ -66,11 +66,15 @@ Check your router to find out the IP address of the heat pump and enable static
<!--
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
- (theknut) change update interval from milliseconds to seconds
- (theknut) add axios timeout
- (theknut) remove unused onStateChange handler
-->

### **WORK IN PROGRESS**

- (theknut) change update interval from milliseconds to seconds
- (theknut) add axios timeout
- (theknut) remove unused onStateChange handler
- (theknut) logoff when adapter is unloaded

### 0.0.2 (2024-03-11)

- (theknut) prepare for release
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Expand Up @@ -18,6 +18,7 @@ class WaterkotteEasycon extends utils.Adapter {
name: 'waterkotte-easycon',
});
this.on('ready', this.onReady.bind(this));
this.on('unload', this.onUnload.bind(this));
}

/**
Expand Down

0 comments on commit acb311e

Please sign in to comment.