Skip to content

Commit

Permalink
fix: battery conversion not working (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Feb 5, 2018
1 parent 2e4d2c5 commit c60d0b1
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 96 deletions.
4 changes: 2 additions & 2 deletions conversions/battery.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ module.exports = (app, plugin) => {
},

conversions: (options) => {
if ( !_.get(options, 'BATTERY.batteries') ) {
if ( !_.get(options, 'BATTERYv2.batteries') ) {
return null
}
return options.BATTERY.batteries.map(battery => {
return options.BATTERYv2.batteries.map(battery => {
return {
keys: batteryKeys.map(key => `electrical.batteries.${battery.signalkId}.${key}`),
timeouts: batteryKeys.map(key => 60000),
Expand Down
Loading

0 comments on commit c60d0b1

Please sign in to comment.