Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
adcrafter27 committed Jun 19, 2021
1 parent c060bb2 commit 17e658f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,18 @@ class envertech_pv extends utils.Adapter {
//self.log.info(obj);
let unit = null;

if(typeof obj == 'number'){
var newtype1 = 'number'
}else{
var newtype1 = 'string'
}


self.setObjectNotExists("overview.station."+key, {
type: 'state',
common: {
name: key,
type: 'string',
type: newtype1,
role: 'value',
read: true,
write: false
Expand Down

0 comments on commit 17e658f

Please sign in to comment.