From 72691c389b2c8944ea5aaf10f02694d27bfdf681 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Mon, 25 Sep 2023 14:06:08 +0200 Subject: [PATCH] Update packages/core/src/exposed-thing.ts Co-authored-by: Jan Romann --- packages/core/src/exposed-thing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/exposed-thing.ts b/packages/core/src/exposed-thing.ts index 8a2145960..8f5ada9c7 100644 --- a/packages/core/src/exposed-thing.ts +++ b/packages/core/src/exposed-thing.ts @@ -276,7 +276,7 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing { debug(`ExposedThing '${this.title}' setting property unobserve handler for '${name}'`); if (this.properties[name] != null) { - if (!(this.properties[name].observable === true)) { + if (this.properties[name].observable !== true) { throw new Error( `ExposedThing '${this.title}' cannot set unobserve handler for property '${name}' due to missing observable flag` );