Skip to content

Commit

Permalink
chore: release v0.4.8-alpha.11
Browse files Browse the repository at this point in the history
Bugfix : Ensure daily reset does not destroy cumulative memory value (Fixes NULL values for Watt after night reset)
  • Loading branch information
DutchmanNL committed Jan 14, 2021
1 parent b5a317f commit 57b639a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ Sentry.io is a service for developers to get an overview about errors from their
When the adapter crashes or an other Code error happens, this error message that also appears in the ioBroker log is submitted to Sentry. When you allowed iobroker GmbH to collect diagnostic data then also your installation ID (this is just a unique ID **without** any additional infos about you, email, name or such) is included. This allows Sentry to group errors and show how many unique users are affected by such an error. All of this helps me to provide error free adapters that basically never crashs.


## Changelog

<!--
Placeholder for the next version (at the beginning of the line):
Expand All @@ -245,6 +244,9 @@ When the adapter crashes or an other Code error happens, this error message that

## Changelog

### 0.4.8-alpha.11 (2021-01-14)
* (Dutchman) Bugfix : Ensure daily reset does not destroy cumulative memory value (Fixes NULL values for Watt after night reset)

### 0.4.8-alpha.10 (2021-01-14)
* (Dutchman) Bugfix : Avoid loop if init value is set and > reading
* (Dutchman) Bugfix : Throw error if value is NULL for troubleshooting instead of handling incorrect calculation
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": "sourceanalytix",
"version": "0.4.8-alpha.10",
"version": "0.4.8-alpha.11",
"news": {
"0.4.8-alpha.11": {
"en": "Bugfix : Ensure daily reset does not destroy cumulative memory value (Fixes NULL values for Watt after night reset)",
"de": "Bugfix: Stellen Sie sicher, dass das tägliche Zurücksetzen den kumulativen Speicherwert nicht zerstört (Behebt NULL-Werte für Watt nach dem Zurücksetzen bei Nacht).",
"ru": "Исправление: убедитесь, что ежедневный сброс не уничтожает совокупное значение памяти (исправляет значения NULL для ватт после ночного сброса)",
"pt": "Correção de bug: garantir que a reinicialização diária não destrua o valor cumulativo da memória (corrige os valores NULL para Watt após a reinicialização noturna)",
"nl": "Bugfix: zorg ervoor dat dagelijkse reset de cumulatieve geheugenwaarde niet vernietigt (repareert NULL-waarden voor Watt na nachtreset)",
"fr": "Correctif: assurez-vous que la réinitialisation quotidienne ne détruit pas la valeur de mémoire cumulée (corrige les valeurs NULL pour Watt après la réinitialisation de nuit)",
"it": "Bugfix: assicurarsi che il ripristino giornaliero non distrugga il valore della memoria cumulativa (risolve i valori NULL per Watt dopo il ripristino notturno)",
"es": "Corrección de error: asegúrese de que el reinicio diario no destruya el valor de memoria acumulativo (corrige los valores NULL para Watt después del reinicio nocturno)",
"pl": "Poprawka: Upewnij się, że codzienny reset nie niszczy skumulowanej wartości pamięci (naprawia wartości NULL dla watów po resetowaniu nocnym)",
"zh-cn": "错误修正:确保每日重设不会破坏累积内存值(夜间重设后修复Watt的NULL值)"
},
"0.4.8-alpha.10": {
"en": "Bugfix : Avoid loop if init value is set and > reading\nBugfix : Throw error if value is NULL for troubleshooting instead of handling incorrect calculation",
"de": "Bugfix: Schleife vermeiden, wenn Init-Wert gesetzt ist und> lesen\nBugfix: Fehler auslösen, wenn der Wert für die Fehlerbehebung NULL ist, anstatt falsche Berechnungen zu behandeln",
Expand Down
4 changes: 0 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,6 @@ class Sourceanalytix extends utils.Adapter {
this.activeStates[stateID].calcValues.previousReadingWattTs = null;
}

// Extend object with start value [type] & update memory
obj.common.custom[this.namespace].start_day = reading;
this.activeStates[stateID].calcValues = obj.common.custom[this.namespace];

//At week reset ensure current week values are moved to previous week and current set to 0
if (beforeReset.week !== actualDate.week) {
for (const x in weekdays) {
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.sourceanalytix",
"version": "0.4.8-alpha.10",
"version": "0.4.8-alpha.11",
"description": "SourceAnalytix",
"author": {
"name": "DutchmanNL",
Expand Down

0 comments on commit 57b639a

Please sign in to comment.