Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
phifogg committed Jan 29, 2025
1 parent e678f72 commit c7c928c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ const DATAFIELDS = [
},
{
id: 'water_status',
type: 'string',
type: 'number',
unit: '',
role: '',
wunderground: null,
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class Sainlogic extends utils.Adapter {
value = 0;
default_value = 0;
}
} else if (attrdef.type == 'string') {
value = value + '';
}

this.getObject(obj_id, function (err, obj) {
Expand Down

0 comments on commit c7c928c

Please # to comment.