Skip to content

Commit

Permalink
Update packages/core/src/exposed-thing.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Romann <[email protected]>
  • Loading branch information
danielpeintner and JKRhb authored Sep 25, 2023
1 parent c8dddc8 commit 72691c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/exposed-thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Check warning on line 279 in packages/core/src/exposed-thing.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/exposed-thing.ts#L278-L279

Added lines #L278 - L279 were not covered by tests
throw new Error(
`ExposedThing '${this.title}' cannot set unobserve handler for property '${name}' due to missing observable flag`
);
Expand Down

0 comments on commit 72691c3

Please sign in to comment.