Skip to content

Commit

Permalink
chore: release v0.6.3
Browse files Browse the repository at this point in the history
Missing dropdown for ID of effects added
HotFix: Missing axios dependency added
  • Loading branch information
DutchmanNL committed Sep 8, 2021
1 parent 5661b03 commit 9e62611
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ When the adapter crashes or another Code error happens, this error message that
### __WORK IN PROGRESS__
-->

### 0.6.2 (2021-09-08) - Missing axios dependency added
### 0.6.3 (2021-09-08) - HotFixes
* (DutchmanNL) Missing dropdown for ID of effects added
* (DutchmanNL) HotFix: Missing axios dependency added

### 0.6.1 (2021-09-08)
Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "wled",
"version": "0.6.2",
"version": "0.6.3",
"news": {
"0.6.3": {
"en": "Missing dropdown for ID of effects added\nHotFix: Missing axios dependency added",
"de": "Fehlende Dropdown-Liste für die ID der hinzugefügten Effekte\nHotFix: Fehlende Axios-Abhängigkeit hinzugefügt",
"ru": "Отсутствует раскрывающийся список для идентификатора добавленных эффектов.\nHotFix: добавлена отсутствующая зависимость axios",
"pt": "Lista suspensa ausente para ID de efeitos adicionados\nHotFix: Dependência de axios ausente adicionada",
"nl": "Ontbrekende vervolgkeuzelijst voor ID van toegevoegde effecten\nHotFix: ontbrekende axios-afhankelijkheid toegevoegd",
"fr": "Liste déroulante manquante pour l'ID des effets ajoutés\nHotFix : Ajout d'une dépendance axios manquante",
"it": "Menu a discesa mancante per l'ID degli effetti aggiunti\nHotFix: aggiunta dipendenza Axios mancante",
"es": "Falta el menú desplegable para la identificación de los efectos agregados\nHotFix: Se agregó la dependencia de axios faltante",
"pl": "Brakujące menu dla identyfikatora dodanych efektów\nPoprawka: dodano brakującą zależność axios",
"zh-cn": "缺少添加效果 ID 的下拉菜单\nHotFix:添加了缺少 axios 依赖项"
},
"0.6.2": {
"en": "HotFix: Missing axios dependency added",
"de": "HotFix: Fehlende Axios-Abhängigkeit hinzugefügt",
Expand Down
21 changes: 5 additions & 16 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,15 @@ class Wled extends utils.Adapter {
await this.create_state(device_id + '._info' + '._online', 'online', true);

// Store / Update effects
const effects = deviceData.effects;
if (this.IsJsonString(effects)) { // arteck
try {
const effects = deviceData.effects;
// Store effects array
this.effects[device_id] = {};
for (const i in effects) {
this.effects[device_id][i] = effects[i];
}
} catch (e){
this.log.debug(`Cannot create effect dropdown`)
}

// Store / Update pallets
Expand Down Expand Up @@ -1082,20 +1084,7 @@ class Wled extends utils.Adapter {
this.log.error(`Sentry disabled, error caught : ${sentryMessage}`);
}
}

/**
* Verify if string id JSON
* @param {string} str string to check
*/
IsJsonString(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}


/**
* Ensure proper deletion of state and object
* @param {string} state ID of object to delete
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.wled",
"version": "0.6.2",
"version": "0.6.3",
"description": "A fast and feature-rich implementation of an ESP8266/ESP32 webserver to control NeoPixel (WS2812B, WS2811, SK6812, APA102) LEDs!",
"author": {
"name": "DutchmanNL",
Expand Down

0 comments on commit 9e62611

Please sign in to comment.