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 994e1a7 commit c8dddc8
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 @@ -252,7 +252,7 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
debug(`ExposedThing '${this.title}' setting property observe handler for '${name}'`);

if (this.properties[name] != null) {
if (!(this.properties[name].observable === true)) {
if (this.properties[name].observable !== true) {

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

View check run for this annotation

Codecov / codecov/patch

packages/core/src/exposed-thing.ts#L254-L255

Added lines #L254 - L255 were not covered by tests
throw new Error(
`ExposedThing '${this.title}' cannot set observe handler for property '${name}' since the observable flag is set to false`
);
Expand Down

0 comments on commit c8dddc8

Please sign in to comment.