From 1fe03f5e190b260bd3cea5e10013b19554308a4b Mon Sep 17 00:00:00 2001 From: Andreas Holstenson Date: Sat, 17 Feb 2018 09:24:38 +0100 Subject: [PATCH] Vacuum now uses reverse mapping when loading properties --- lib/devices/vacuum.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/devices/vacuum.js b/lib/devices/vacuum.js index 7cdf5bc..0a04a38 100644 --- a/lib/devices/vacuum.js +++ b/lib/devices/vacuum.js @@ -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')