From b1acfc6bbcb80f88c826b561eb9a2891dc83004e Mon Sep 17 00:00:00 2001 From: grizzelbee Date: Fri, 21 Jun 2024 21:38:34 +0200 Subject: [PATCH 1/2] Added missing clearInterval in onUnload --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index b2cefe1..ce70fc9 100644 --- a/main.js +++ b/main.js @@ -1584,7 +1584,7 @@ class dysonAirPurifier extends utils.Adapter { try { for (const DEVICE in devices) { const thisDevice = devices[DEVICE]; - clearTimeout(thisDevice.updateIntervalHandle); + clearInterval(thisDevice.updateIntervalHandle); this.log.info(`Cleaned up timeout for ${thisDevice.Serial}.`); await this.setDeviceOnlineState(thisDevice.Serial, 'offline'); this.log.debug(`Set device ${thisDevice.Serial} to offline.`); From 4c5e55e23985290e01c23e616f8d3c1fc9bbba04 Mon Sep 17 00:00:00 2001 From: grizzelbee Date: Fri, 21 Jun 2024 21:40:34 +0200 Subject: [PATCH 2/2] v3.2.3 --- README.md | 3 +++ io-package.json | 15 ++++++++++++++- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 617342b..84ec992 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,9 @@ This is nice to know because the devices usually send (at least mine do) their s ### **WORK IN PROGRESS** +### 3.2.3 (2024-06-21) (Marching on) +- (grizzelbee) Fix: Added missing clearInterval in onUnload + ### 3.2.2 (2024-06-18) (Marching on) - (grizzelbee) Upd: Dependencies got updated - (grizzelbee) Upd: [#286](https://github.com/Grizzelbee/ioBroker.dysonairpurifier/issues/286) Fixed polling which got broken in v3.1.10 diff --git a/io-package.json b/io-package.json index ce63757..d052065 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,21 @@ { "common": { "name": "dysonairpurifier", - "version": "3.2.2", + "version": "3.2.3", "news": { + "3.2.3": { + "en": "Fix: Added missing clearInterval in onUnload", + "de": "Fix: Fehlendes ClearInterval in onUnload hinzugefügt", + "ru": "Исправлено: добавлен отсутствующий параметр ClearInterval в onUnload.", + "pt": "Correção: adicionado clearInterval ausente em onUnload", + "nl": "Oplossing: ontbrekend clearInterval toegevoegd in onUnload", + "fr": "Correctif : ajout de clearInterval manquant dans onUnload", + "it": "Correzione: aggiunto clearInterval mancante in onUnload", + "es": "Solución: se agregó el intervalo claro que faltaba en onUnload", + "pl": "Poprawka: dodano brakujący clearInterval w onUnload", + "uk": "Виправлення: додано відсутній clearInterval у onUnload", + "zh-cn": "修复:在 onUnload 中添加了缺少的clearInterval" + }, "3.2.2": { "en": "Fix: Fixed polling which got broken in v3.1.10\nChg: Dependencies got updated", "de": "Fix: Polling wurde korrigiert nachdem es in Version 3.1.10 kaputt gegangen ist.\nÄnderung: Abhängigkeiten wurden aktualisiert", diff --git a/package-lock.json b/package-lock.json index fc6e98f..2aaef98 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iobroker.dysonairpurifier", - "version": "3.2.2-beta-3", + "version": "3.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "iobroker.dysonairpurifier", - "version": "3.2.2-beta-3", + "version": "3.2.3", "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^3.1.6", diff --git a/package.json b/package.json index de947f8..375e31c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.dysonairpurifier", - "version": "3.2.2", + "version": "3.2.3", "description": "dyson air purifiers and fans", "author": { "name": "grizzelbee",