Skip to content

Commit

Permalink
Update update script to match the new script in the core
Browse files Browse the repository at this point in the history
  • Loading branch information
McHauge committed Jun 28, 2021
1 parent 4764fee commit 97a42b0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generic-variables",
"version": "0.0.2",
"version": "0.0.3",
"api_version": "0.0.1",
"description": "Generic Variables",
"keywords": [
Expand Down
36 changes: 26 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 97a42b0

Please sign in to comment.