From 97a42b0b89ff980634e39500abfae2738604975b Mon Sep 17 00:00:00 2001 From: McHauge Date: Mon, 28 Jun 2021 11:55:20 +0200 Subject: [PATCH] Update update script to match the new script in the core --- README.md | 6 +++++- package.json | 2 +- src/index.js | 36 ++++++++++++++++++++++++++---------- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1c92a75..7e0f635 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,8 @@ See HELP.md and LICENSE **V0.0.2** -- Updated feedbacks to thenew boolean type. +- Updated feedbacks to the new boolean type. + +**V0.0.3** + +- Fix updatescript to the new version. \ No newline at end of file diff --git a/package.json b/package.json index ef0db07..f022571 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generic-variables", - "version": "0.0.2", + "version": "0.0.3", "api_version": "0.0.1", "description": "Generic Variables", "keywords": [ diff --git a/src/index.js b/src/index.js index e9c67b2..9341cff 100644 --- a/src/index.js +++ b/src/index.js @@ -77,18 +77,34 @@ class VariablesInstance extends instance_skel { this.config.apiPollInterval = this.config.apiPollInterval !== undefined ? this.config.apiPollInterval : 10000 this.dynamicVariableChoices = [] - this.addUpgradeToBooleanFeedbackScript({ - 'varMatchString': { - 'fg': 'color', - 'bg1': 'bgcolor', - }, - 'varMatchVar': { - 'fg': 'color', - 'bg1': 'bgcolor', - }, - }) + // this.addUpgradeToBooleanFeedbackScript({ + // 'varMatchString': { + // 'fg': 'color', + // 'bg1': 'bgcolor', + // }, + // 'varMatchVar': { + // 'fg': 'color', + // 'bg1': 'bgcolor', + // }, + // }) } + GetUpgradeScripts = function () { + return [ + instance_skel.CreateConvertToBooleanFeedbackUpgradeScript({ + varMatchString: { + 'fg': 'color', + 'bg1': 'bgcolor', + }, + varMatchVar: { + 'fg': 'color', + 'bg1': 'bgcolor', + }, + }), + ] + } + + // Init module init() { this.status(1, 'Connecting')