From acb311ebf1f78f08ffbb8ac2697a5de67f749c4e Mon Sep 17 00:00:00 2001 From: theknut Date: Fri, 12 Apr 2024 12:10:17 +0200 Subject: [PATCH] fix: bind onUnload --- README.md | 10 +++++++--- src/main.ts | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1006bc5..8f821c7 100644 --- a/README.md +++ b/README.md @@ -66,11 +66,15 @@ Check your router to find out the IP address of the heat pump and enable static +### **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 diff --git a/src/main.ts b/src/main.ts index 4fa18d2..b42bc6e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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)); } /**