diff --git a/README.md b/README.md index fc35841..ddfc538 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,7 @@ The values of the state provide multiple manipulation modes: ### __WORK IN PROGRESS__ - (Michael Schroeder) [#224](https://github.com/MiSchroe/ioBroker.klf200/issues/224) Fixed timeout error during adapter start in some special cases. +- (Michael Schroeder) [#246](https://github.com/MiSchroe/ioBroker.klf200/issues/246) Fixed an issue that logged the same log entry multiple times. - (Michael Schroeder) [#210](https://github.com/MiSchroe/ioBroker.klf200/issues/210) Run integration tests against a virtual mock version of an KLF-200. - (Michael Schroeder) [#233](https://github.com/MiSchroe/ioBroker.klf200/issues/233) Fixed findings of Adapter Checker. - (Michael Schroeder) Upgrade dependencies diff --git a/src/util/propertyLink.ts b/src/util/propertyLink.ts index 37b4ddb..13e56d2 100644 --- a/src/util/propertyLink.ts +++ b/src/util/propertyLink.ts @@ -150,12 +150,12 @@ export abstract class BaseStateChangeHandler implements StateChangedEventHandler } private async stateChanged(id: string, obj: ioBroker.State | null | undefined): Promise { - this.Adapter.log.silly( - `State changed event received for id ${id}. New state: ${JSON.stringify(obj)}. Handled by ${ - this.constructor.name - }`, - ); if (id === `${this.Adapter.namespace}.${this.StateId}`) { + this.Adapter.log.silly( + `State changed event received for id ${id}. New state: ${JSON.stringify(obj)}. Handled by ${ + this.constructor.name + }`, + ); try { await this.onStateChange(obj); } catch (error) {