Skip to content

Commit

Permalink
Merge pull request #71 from davbauer/refactor-modes
Browse files Browse the repository at this point in the history
Fixed function for checking validity of config
  • Loading branch information
davbauer authored Mar 26, 2024
2 parents cbb9ef2 + 9eb3a5d commit 8977cfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/classes/ConfigFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ export default class {
typeof data.CheckSeconds === 'number' &&
typeof data.MinimumWatts === 'number' &&
typeof data.MaximumWatts === 'number' &&
typeof data.UsePowergrid === 'boolean' &&
typeof data.CarEfficiency === 'number' &&
typeof data.OffsetWatts === 'number' &&
typeof data.BatteryCapacity === 'number' &&
typeof data.OffsetWatts === 'number'
typeof data.CarEfficiency === 'number' &&
typeof data.PreferredPhase === 'string'
);
}
}

0 comments on commit 8977cfc

Please sign in to comment.