Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
daolis committed Aug 25, 2023
1 parent 8c2c2c1 commit f875b95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/lib/states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ export class InverterStates {
mapper: value => Promise.resolve(MeterStatus[value])
},
{
state: {id: "grid.activePower", name: "Active power", type: 'number', role: 'value.power'},
state: {id: "grid.activePower", name: "Active power", type: 'number', role: 'value.power', unit: "W"},
register: {reg: 37113, type: ModbusDatatype.int32, length: 2},
mapper: value => Promise.resolve(MeterStatus[value])
}
];
}
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Sun2000Modbus extends utils.Adapter {
*/
private async onReady(): Promise<void> {
// Initialize your adapter here
this.config.updateInterval = 5;

// The adapters config (in the instance object everything under the attribute "native") is accessible via
// this.config:
Expand Down

0 comments on commit f875b95

Please sign in to comment.