Skip to content

Commit

Permalink
Vacuum now uses reverse mapping when loading properties
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstenson committed Feb 17, 2018
1 parent 84b8a15 commit 1fe03f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/devices/vacuum.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ module.exports = class extends Vacuum.with(

loadProperties(props) {
// We override loadProperties to use get_status and get_consumables
props = props.map(key => this._reversePropertyDefinitions[key] || key);

return Promise.all([
this.call('get_status'),
this.call('get_consumable')
Expand Down

0 comments on commit 1fe03f5

Please sign in to comment.