Skip to content

Commit

Permalink
chore: release v3.0.46
Browse files Browse the repository at this point in the history
* (foxriver76) fix for controller v5 (closes #368)
  • Loading branch information
foxriver76 committed Mar 30, 2023
1 parent bf78f07 commit eba600d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ with the ioBroker CLI. You can change the port via `iob set hm-rega.<instance> -
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### 3.0.45 (2023-03-30)
### 3.0.46 (2023-03-30)
* (foxriver76) fix for controller v5 (closes #368)

### 3.0.44 (2023-02-20)
Expand Down
27 changes: 14 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "hm-rega",
"version": "3.0.45",
"version": "3.0.46",
"news": {
"3.0.46": {
"en": "fix for controller v5 (closes #368)",
"de": "fix für controller v5 (schließt #368)",
"ru": "для контроллера v5 (closes #368)",
"pt": "correção para controlador v5 (fecha #368)",
"nl": "vertaling:",
"fr": "correction pour le contrôleur v5 (fermetures #368)",
"it": "fix per controller v5 (chiude #368)",
"es": "fijado para el controlador v5 (cerca #368)",
"pl": "rezultatem dla kontrolera v5 jest numer 368)",
"uk": "фіксатор для контролера v5 (закривається #368)",
"zh-cn": "fix 控制勒诉5(第368号)"
},
"3.0.45": {
"en": "fix for controller v5 (closes #368)",
"de": "fix für controller v5 (schließt #368)",
Expand Down Expand Up @@ -76,18 +89,6 @@
"es": "si no se puede acceder a LGW, ahora establecemos el ciclo de trabajo en `nulo` en lugar de `-1`",
"pl": "jeśli LGW nie jest osiągalne, ustawiamy teraz cykl pracy na „null” zamiast „-1”",
"zh-cn": "如果无法访问 LGW,我们现在将占空比设置为“空”而不是“-1”"
},
"3.0.39": {
"en": "fixed another `ValueList` bug",
"de": "Ein weiterer `ValueList`-Bug wurde behoben",
"ru": "исправлена еще одна ошибка `ValueList`",
"pt": "corrigido outro bug `ValueList`",
"nl": "een andere `ValueList`-bug gerepareerd",
"fr": "correction d'un autre bogue `ValueList`",
"it": "risolto un altro bug di `ValueList`",
"es": "corrigió otro error de `ValueList`",
"pl": "naprawiono kolejny błąd `ValueList`",
"zh-cn": "修复了另一个“ValueList”错误"
}
},
"title": "HomeMatic ReGaHSS",
Expand Down
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,16 @@ function startAdapter(options) {
const sourceFile = fs.readFileSync(`${__dirname}/regascripts/${regascript}`, 'utf-8');
let targetFile;
try {
targetFile = await adapter.readFileAsync('hm-rega', `regascripts/${regascript}`, 'utf-8');
targetFile = await adapter.readFileAsync('hm-rega', `regascripts/${regascript}`);
} catch (e) {
adapter.log.debug(`[REGASCRIPTS] Script ${regascript} does not exist in file storage yet`);
}

if (!targetFile || targetFile.file !== sourceFile) {
// update file storage
await adapter.writeFileAsync('hm-rega', `regascripts/${regascript}`, sourceFile, 'utf-8');
await adapter.writeFileAsync('hm-rega', `regascripts/${regascript}`, sourceFile, {
mimeType: 'text/plain'
});
adapter.log.info(`[REGASCRIPTS] Successfully updated ${regascript}`);
} else {
adapter.log.debug(`[REGASCRIPTS] Script ${regascript} is already up-to-date`);
Expand Down
4 changes: 2 additions & 2 deletions 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.hm-rega",
"version": "3.0.45",
"version": "3.0.46",
"engines": {
"node": ">=10.0.0"
},
Expand Down

0 comments on commit eba600d

Please sign in to comment.