From 990a79909991715949f097b9bcd5856cca4eb09d Mon Sep 17 00:00:00 2001 From: Moritz Heusinger Date: Fri, 30 Apr 2021 17:39:45 +0200 Subject: [PATCH] chore: release v3.0.24 we fixed more occurrences of incorrect types (fixes #146) --- README.md | 3 +++ hm-rega.js | 6 +++--- io-package.json | 26 +++++++++++++------------- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 4303c9e..fce93dd 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,9 @@ with the ioBroker CLI. You can change the port via `iob set hm-rega. - Placeholder for the next version (at the beginning of the line): ### __WORK IN PROGRESS__ --> +### 3.0.24 (2021-04-30) +* (foxriver76) we fixed more occurrences of incorrect types (fixes #146) + ### 3.0.23 (2021-04-30) * (foxriver76) we now correctly convert the rssi values, workaround for https://github.com/jens-maus/RaspberryMatic/issues/897 * (foxriver76) we made counter states of type "number", was incorrectly "string" (closes #145) diff --git a/hm-rega.js b/hm-rega.js index cf76fd0..b95774a 100644 --- a/hm-rega.js +++ b/hm-rega.js @@ -1890,7 +1890,7 @@ async function getDutyCycle() { CONTROL: 'NONE' } }; - await addNewStateOrObject(stateConnected, dp.CONNECTED); + await addNewStateOrObject(stateConnected, parseInt(dp.CONNECTED)); } //DEFAULT State: @@ -1913,7 +1913,7 @@ async function getDutyCycle() { CONTROL: 'NONE' } }; - await addNewStateOrObject(stateDefault, dp.DEFAULT); + await addNewStateOrObject(stateDefault, parseInt(dp.DEFAULT)); } // FIRMWARE_VERSION State: @@ -1964,7 +1964,7 @@ async function getDutyCycle() { type: 'state', common: { name: `${adapter.namespace}.${id}.0.countDevices`, - type: 'string', + type: 'number', read: true, write: false, role: 'indicator.count', diff --git a/io-package.json b/io-package.json index e6cffd2..436a493 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,20 @@ { "common": { "name": "hm-rega", - "version": "3.0.23", + "version": "3.0.24", "news": { + "3.0.24": { + "en": "we fixed more occurrences of incorrect types (fixes #146)", + "de": "Wir haben mehr Vorkommen falscher Typen behoben (Fixes # 146).", + "ru": "мы исправили больше случаев появления некорректных типов (исправления # 146)", + "pt": "corrigimos mais ocorrências de tipos incorretos (correções # 146)", + "nl": "we hebben meer gevallen van onjuiste typen opgelost (fix # 146)", + "fr": "nous avons corrigé plus d'occurrences de types incorrects (corrections # 146)", + "it": "abbiamo corretto più occorrenze di tipi errati (correzioni # 146)", + "es": "arreglamos más ocurrencias de tipos incorrectos (arreglos # 146)", + "pl": "naprawiliśmy więcej wystąpień nieprawidłowych typów (poprawki # 146)", + "zh-cn": "我们修复了更多错误类型的情况(修复#146)" + }, "3.0.23": { "en": "we now correctly convert the rssi values, workaround for https://github.com/jens-maus/RaspberryMatic/issues/897\nwe made counter states of type \"number\", was incorrectly \"string\" (closes #897)", "de": "Wir konvertieren jetzt die RSSI-Werte korrekt, Problemumgehung für https://github.com/jens-maus/RaspberryMatic/issues/897\nWir haben Zählerzustände vom Typ \"Nummer\" erstellt, die fälschlicherweise \"Zeichenfolge\" waren (schließt # 897).", @@ -230,18 +242,6 @@ "es": "ahora ofrecemos la posibilidad de utilizar un puerto de interfaz web personalizado, consulte las preguntas frecuentes", "pl": "oferujemy teraz możliwość korzystania z niestandardowego portu interfejsu internetowego, zobacz FAQ", "zh-cn": "我们现在提供使用自定义Web界面端口的可能性,请参阅常见问题解答" - }, - "3.0.4": { - "en": "fixed missing enum translations (changed in API)", - "de": "fehlende Enum-Übersetzungen behoben (in API geändert)", - "ru": "исправлены отсутствующие переводы enum (изменено в API)", - "pt": "corrigidas traduções enum ausentes (alteradas na API)", - "nl": "ontbrekende enum-vertalingen opgelost (gewijzigd in API)", - "fr": "corrections d'énumérations manquantes (modifiées dans l'API)", - "it": "risolte traduzioni enum mancanti (modificate nell'API)", - "es": "Se corrigieron las traducciones de enumeración que faltaban (cambiadas en la API)", - "pl": "naprawiono brakujące tłumaczenia wyliczeń (zmienione w API)", - "zh-cn": "修复缺少的枚举翻译(已在API中更改)" } }, "title": "HomeMatic ReGaHSS", diff --git a/package-lock.json b/package-lock.json index 078b4b2..3f5919e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iobroker.hm-rega", - "version": "3.0.23", + "version": "3.0.24", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "iobroker.hm-rega", - "version": "3.0.23", + "version": "3.0.24", "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^2.4.0", diff --git a/package.json b/package.json index b20d60d..b8d5efb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.hm-rega", - "version": "3.0.23", + "version": "3.0.24", "engines": { "node": ">=10.0.0" },