From 0cafffa64ab2206b0412e70574330fd83c7e27b9 Mon Sep 17 00:00:00 2001 From: Moritz Heusinger Date: Sat, 4 Dec 2021 20:06:29 +0100 Subject: [PATCH] chore: release v1.0.20 ensure compatibility with future controller versions --- README.md | 3 +++ io-package.json | 19 ++++++++++++++++++- main.js | 2 +- package.json | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 12eb909..8143c7d 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,9 @@ You can enable polling in admin via objects configuration. --> ## Changelog +### 1.0.20 (2021-12-04) +* (foxriver76) ensure compatibility with future controller versions + ### 1.0.19 (2021-05-28) * (bluefox) added support for Admin5 diff --git a/io-package.json b/io-package.json index b907843..eca4127 100755 --- a/io-package.json +++ b/io-package.json @@ -1,13 +1,25 @@ { "common": { "name": "upnp", - "version": "1.0.19", + "version": "1.0.20", "title": "UPnP", "titleLang": { "en": "UPnP", "de": "UPnP" }, "news": { + "1.0.20": { + "en": "ensure compatibility with future controller versions", + "de": "Gewährleistung der Kompatibilität mit zukünftigen Controller-Versionen", + "ru": "обеспечить совместимость с будущими версиями контроллеров", + "pt": "garantir a compatibilidade com futuras versões do controlador", + "nl": "zorgen voor compatibiliteit met toekomstige controllerversies", + "fr": "assurer la compatibilité avec les futures versions du contrôleur", + "it": "garantire la compatibilità con le future versioni del controller", + "es": "garantizar la compatibilidad con futuras versiones del controlador", + "pl": "zapewnić kompatybilność z przyszłymi wersjami sterownika", + "zh-cn": "确保与未来的控制器版本兼容" + }, "1.0.19": { "en": "added support for Admin5", "de": "Unterstützung für Admin5 hinzugefügt", @@ -116,6 +128,11 @@ "name": "Jey Cee", "email": "jey-cee@live.com" } + ], + "globalDependencies": [ + { + "js-controller": ">=3.3.0" + } ] }, "native": { diff --git a/main.js b/main.js index 8e718a5..8c6e721 100755 --- a/main.js +++ b/main.js @@ -1731,7 +1731,7 @@ function sendCommand(id, cb) { function readSchedules() { return new Promise(resolve => { - adapter.getObjectView('custom', 'state', {startkey: adapter.namespace + '.', endkey: adapter.namespace + '.\uFFFF'}, (err, doc) => { + adapter.getObjectView('system', 'custom', {startkey: adapter.namespace + '.', endkey: adapter.namespace + '.\uFFFF'}, (err, doc) => { if (doc && doc.rows) { for (let i = 0, l = doc.rows.length; i < l; i++) { if (doc.rows[i].value) { diff --git a/package.json b/package.json index 793e4c7..f873c26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.upnp", - "version": "1.0.19", + "version": "1.0.20", "description": "UPnP is looking for UPnP devices on Local Network", "author": { "name": "Jey Cee",